calls are already handled, malloc doesn't need a special case.
[oota-llvm.git] / lib / Transforms / Utils / InlineCost.cpp
index 0eeec8cf371b6e27ade45705212f8329da08a5d0..a61b1a9b0c28c202e2c19c98867b4176e1b83c97 100644 (file)
@@ -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 @@ unsigned InlineCostAnalyzer::FunctionInfo::
       // 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;