commit | a276c603b82a11b0bf0b59f0517a69e4b63adeab | [log] [tgz] |
---|---|---|
author | Victor Hernandez <vhernandez@apple.com> | Sat Oct 17 01:18:07 2009 +0000 |
committer | Victor Hernandez <vhernandez@apple.com> | Sat Oct 17 01:18:07 2009 +0000 |
tree | 0bf9c9f1be6d75c1fd4a5811844e196eec7636c9 | |
parent | 3bdd8de2806e47f34369c1e6ce6e6b44a135bd29 [diff] [blame] |
Remove MallocInst from LLVM Instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84299 91177308-0d34-0410-b5e6-96231b3b80d8
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 @@ } // 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)) {