diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-27 21:31:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-27 21:31:39 +0000 |
commit | 68b1bbbc55b051182ba0fc181a1ea3267e8b5b1f (patch) | |
tree | db9c87ac09a44ed8a0c0ca2ea0f7b6fb0be30224 /lib | |
parent | 439044f4f9594990fb9a8149ea67c119a2b05387 (diff) | |
download | external_llvm-68b1bbbc55b051182ba0fc181a1ea3267e8b5b1f.zip external_llvm-68b1bbbc55b051182ba0fc181a1ea3267e8b5b1f.tar.gz external_llvm-68b1bbbc55b051182ba0fc181a1ea3267e8b5b1f.tar.bz2 |
calls are rejected above, no need to special case malloc here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82929 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/TailDuplication.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/TailDuplication.cpp b/lib/Transforms/Scalar/TailDuplication.cpp index ee45231..68689d6 100644 --- a/lib/Transforms/Scalar/TailDuplication.cpp +++ b/lib/Transforms/Scalar/TailDuplication.cpp @@ -28,7 +28,6 @@ #include "llvm/Type.h" #include "llvm/Support/CFG.h" #include "llvm/Analysis/ConstantFolding.h" -#include "llvm/Analysis/MallocHelper.h" #include "llvm/Transforms/Utils/Local.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Debug.h" @@ -129,8 +128,8 @@ bool TailDup::shouldEliminateUnconditionalBranch(TerminatorInst *TI, // other instructions. if (isa<CallInst>(I) || isa<InvokeInst>(I)) return false; - // Allso alloca and malloc. - if (isa<AllocationInst>(I) || isMalloc(I)) return false; + // Also alloca and malloc. + if (isa<AllocationInst>(I)) return false; // Some vector instructions can expand into a number of instructions. if (isa<ShuffleVectorInst>(I) || isa<ExtractElementInst>(I) || |