[llvm-commits] [llvm] r82931 - /llvm/trunk/lib/Transforms/Utils/InlineCost.cpp

Chris Lattner sabre at nondot.org
Sun Sep 27 14:33:46 PDT 2009


Author: lattner
Date: Sun Sep 27 16:33:46 2009
New Revision: 82931

URL: http://llvm.org/viewvc/llvm-project?rev=82931&view=rev
Log:
calls are already handled, malloc doesn't need a special case.

Modified:
    llvm/trunk/lib/Transforms/Utils/InlineCost.cpp

Modified: llvm/trunk/lib/Transforms/Utils/InlineCost.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/InlineCost.cpp?rev=82931&r1=82930&r2=82931&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Utils/InlineCost.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/InlineCost.cpp Sun Sep 27 16:33:46 2009
@@ -11,9 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-
 #include "llvm/Transforms/Utils/InlineCost.h"
-#include "llvm/Analysis/MallocHelper.h"
 #include "llvm/Support/CallSite.h"
 #include "llvm/CallingConv.h"
 #include "llvm/IntrinsicInst.h"
@@ -52,7 +50,7 @@
       // Unfortunately, we don't know the pointer that may get propagated here,
       // so we can't make this decision.
       if (Inst.mayReadFromMemory() || Inst.mayHaveSideEffects() ||
-          isa<AllocationInst>(Inst) || isMalloc(&Inst)) 
+          isa<AllocationInst>(Inst)) 
         continue;
 
       bool AllOperandsConstant = true;





More information about the llvm-commits mailing list