mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
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
This commit is contained in:
parent
de420aee32
commit
d4e8d31e40
@ -91,7 +91,8 @@ namespace {
|
||||
// emit it inline where it would go.
|
||||
if (I.getType() == Type::VoidTy || I.use_size() != 1 ||
|
||||
isa<TerminatorInst>(I) || isa<CallInst>(I) || isa<PHINode>(I) ||
|
||||
isa<LoadInst>(I)) // Don't inline a load across a store!
|
||||
isa<LoadInst>(I) || isa<VarArgInst>(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.
|
||||
|
@ -91,7 +91,8 @@ namespace {
|
||||
// emit it inline where it would go.
|
||||
if (I.getType() == Type::VoidTy || I.use_size() != 1 ||
|
||||
isa<TerminatorInst>(I) || isa<CallInst>(I) || isa<PHINode>(I) ||
|
||||
isa<LoadInst>(I)) // Don't inline a load across a store!
|
||||
isa<LoadInst>(I) || isa<VarArgInst>(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.
|
||||
|
Loading…
Reference in New Issue
Block a user