[llvm-commits] [llvm] r82929 - /llvm/trunk/lib/Transforms/Scalar/TailDuplication.cpp

Chris Lattner sabre at nondot.org
Sun Sep 27 16:31:40 CDT 2009


Author: lattner
Date: Sun Sep 27 16:31:39 2009
New Revision: 82929

URL: http://llvm.org/viewvc/llvm-project?rev=82929&view=rev
Log:
calls are rejected above, no need to special case malloc here.

Modified:
    llvm/trunk/lib/Transforms/Scalar/TailDuplication.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/TailDuplication.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/TailDuplication.cpp?rev=82929&r1=82928&r2=82929&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/TailDuplication.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/TailDuplication.cpp Sun Sep 27 16:31:39 2009
@@ -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 @@
     // 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) ||





More information about the llvm-commits mailing list