aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-27 21:33:46 +0000
committerChris Lattner <sabre@nondot.org>2009-09-27 21:33:46 +0000
commit4412d04876a373142318619a26b549b679016f35 (patch)
tree4bfccc3c797aaf683de412710e920a09e9957f5d /lib
parentae05e7d945aee2846370313e90d2a735f9696a71 (diff)
downloadexternal_llvm-4412d04876a373142318619a26b549b679016f35.zip
external_llvm-4412d04876a373142318619a26b549b679016f35.tar.gz
external_llvm-4412d04876a373142318619a26b549b679016f35.tar.bz2
calls are already handled, malloc doesn't need a special case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Utils/InlineCost.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/InlineCost.cpp b/lib/Transforms/Utils/InlineCost.cpp
index 0eeec8c..a61b1a9 100644
--- a/lib/Transforms/Utils/InlineCost.cpp
+++ b/lib/Transforms/Utils/InlineCost.cpp
@@ -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;