diff options
author | Victor Hernandez <vhernandez@apple.com> | 2009-10-17 01:18:07 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2009-10-17 01:18:07 +0000 |
commit | 37f513df87ceb54e873adc113a1fcf4af9556833 (patch) | |
tree | 0bf9c9f1be6d75c1fd4a5811844e196eec7636c9 /lib/Analysis/InlineCost.cpp | |
parent | e2996ee5c9a9e0c05141675726ba67d5484c541e (diff) | |
download | external_llvm-37f513df87ceb54e873adc113a1fcf4af9556833.zip external_llvm-37f513df87ceb54e873adc113a1fcf4af9556833.tar.gz external_llvm-37f513df87ceb54e873adc113a1fcf4af9556833.tar.bz2 |
Remove MallocInst from LLVM Instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84299 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/InlineCost.cpp')
-rw-r--r-- | lib/Analysis/InlineCost.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/InlineCost.cpp b/lib/Analysis/InlineCost.cpp index 3b0d2c9..b833baa 100644 --- a/lib/Analysis/InlineCost.cpp +++ b/lib/Analysis/InlineCost.cpp @@ -131,7 +131,7 @@ void CodeMetrics::analyzeBasicBlock(const BasicBlock *BB) { } // These, too, are calls. - if (isa<MallocInst>(II) || isa<FreeInst>(II)) + if (isa<FreeInst>(II)) NumInsts += InlineConstants::CallPenalty; if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) { |