summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit5abb1e4cd29718e0fe1a03bc79ad76448cafd7f5 (patch)
tree5bd7c2c4418dcbee71069938fc0e82b30595ec40 /llvm/lib
parent28a5f25d87d08c074771c97bbd8e6e75d9661cb2 (diff)
downloadbcm5719-llvm-5abb1e4cd29718e0fe1a03bc79ad76448cafd7f5.tar.gz
bcm5719-llvm-5abb1e4cd29718e0fe1a03bc79ad76448cafd7f5.zip
calls are already handled, malloc doesn't need a special case.
llvm-svn: 82931
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Utils/InlineCost.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineCost.cpp b/llvm/lib/Transforms/Utils/InlineCost.cpp
index 0eeec8cf371..a61b1a9b0c2 100644
--- a/llvm/lib/Transforms/Utils/InlineCost.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud