diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-27 21:36:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-27 21:36:19 +0000 |
commit | 5d1f8e4df0a7deddf1b2ee380793bd32b7c815d2 (patch) | |
tree | ae6fcf1956584818b0b9e394b9bccd729e6050ea /lib/Transforms | |
parent | 6ad04a09b7acbcc532f109c8521281124df47cf6 (diff) | |
download | external_llvm-5d1f8e4df0a7deddf1b2ee380793bd32b7c815d2.zip external_llvm-5d1f8e4df0a7deddf1b2ee380793bd32b7c815d2.tar.gz external_llvm-5d1f8e4df0a7deddf1b2ee380793bd32b7c815d2.tar.bz2 |
calls are already unmovable, malloc doesn't need a special case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/Reassociate.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index 9160654..e6ffac2 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/lib/Transforms/Scalar/Reassociate.cpp @@ -29,7 +29,6 @@ #include "llvm/IntrinsicInst.h" #include "llvm/LLVMContext.h" #include "llvm/Pass.h" -#include "llvm/Analysis/MallocHelper.h" #include "llvm/Assembly/Writer.h" #include "llvm/Support/CFG.h" #include "llvm/Support/Debug.h" @@ -122,7 +121,7 @@ static bool isUnmovableInstruction(Instruction *I) { if (I->getOpcode() == Instruction::PHI || I->getOpcode() == Instruction::Alloca || I->getOpcode() == Instruction::Load || - I->getOpcode() == Instruction::Malloc || isMalloc(I) || + I->getOpcode() == Instruction::Malloc || I->getOpcode() == Instruction::Invoke || (I->getOpcode() == Instruction::Call && !isa<DbgInfoIntrinsic>(I)) || |