From d4e8d31e4003aa704cf53e65ee3195c941897181 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 23 Jul 2003 20:45:31 +0000 Subject: [PATCH] Fix program: SingleSource/UnitTests/2003-07-09-SignedArgs with the CBE git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7276 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/CBackend/CBackend.cpp | 3 ++- lib/Target/CBackend/Writer.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index c15c23e3695..285b3a2a4d7 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -91,7 +91,8 @@ namespace { // emit it inline where it would go. if (I.getType() == Type::VoidTy || I.use_size() != 1 || isa(I) || isa(I) || isa(I) || - isa(I)) // Don't inline a load across a store! + isa(I) || isa(I)) + // Don't inline a load across a store or other bad things! return false; // Only inline instruction it it's use is in the same BB as the inst. diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index c15c23e3695..285b3a2a4d7 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -91,7 +91,8 @@ namespace { // emit it inline where it would go. if (I.getType() == Type::VoidTy || I.use_size() != 1 || isa(I) || isa(I) || isa(I) || - isa(I)) // Don't inline a load across a store! + isa(I) || isa(I)) + // Don't inline a load across a store or other bad things! return false; // Only inline instruction it it's use is in the same BB as the inst. -- 2.34.1