From 466d57f6c1e8b7c016119cc9e3b59ffb7da80b0c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 27 Sep 2009 21:31:39 +0000 Subject: [PATCH] calls are rejected above, no need to special case malloc here. llvm-svn: 82929 --- llvm/lib/Transforms/Scalar/TailDuplication.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/Scalar/TailDuplication.cpp b/llvm/lib/Transforms/Scalar/TailDuplication.cpp index ee45231c1e94..68689d6f13b7 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(I) || isa(I)) return false; - // Allso alloca and malloc. - if (isa(I) || isMalloc(I)) return false; + // Also alloca and malloc. + if (isa(I)) return false; // Some vector instructions can expand into a number of instructions. if (isa(I) || isa(I) ||