summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/TailDuplication.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-27 21:31:39 +0000
committerChris Lattner <sabre@nondot.org>2009-09-27 21:31:39 +0000
commit466d57f6c1e8b7c016119cc9e3b59ffb7da80b0c (patch)
treec000ae1477a84fe30be42c8d2c477ff32ae35ea2 /llvm/lib/Transforms/Scalar/TailDuplication.cpp
parent43d0db70ac48425393d5ed1337107a15bf6da806 (diff)
downloadbcm5719-llvm-466d57f6c1e8b7c016119cc9e3b59ffb7da80b0c.tar.gz
bcm5719-llvm-466d57f6c1e8b7c016119cc9e3b59ffb7da80b0c.zip
calls are rejected above, no need to special case malloc here.
llvm-svn: 82929
Diffstat (limited to 'llvm/lib/Transforms/Scalar/TailDuplication.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/TailDuplication.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/TailDuplication.cpp b/llvm/lib/Transforms/Scalar/TailDuplication.cpp
index ee45231c1e9..68689d6f13b 100644
--- a/llvm/lib/Transforms/Scalar/TailDuplication.cpp
+++ b/llvm/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) ||
OpenPOWER on IntegriCloud