summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/InstCount.cpp
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2009-10-17 01:18:07 +0000
committerVictor Hernandez <vhernandez@apple.com>2009-10-17 01:18:07 +0000
commita3aaf85e231e391850ae77af194d4aa457ba6aa3 (patch)
tree92b41932a45ae44868a6c6a1050f05ac9c96fa0a /llvm/lib/Analysis/InstCount.cpp
parent8bcb1c68832c8897bf85b8346098bbb8099f3b94 (diff)
downloadbcm5719-llvm-a3aaf85e231e391850ae77af194d4aa457ba6aa3.tar.gz
bcm5719-llvm-a3aaf85e231e391850ae77af194d4aa457ba6aa3.zip
Remove MallocInst from LLVM Instructions.
llvm-svn: 84299
Diffstat (limited to 'llvm/lib/Analysis/InstCount.cpp')
-rw-r--r--llvm/lib/Analysis/InstCount.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/InstCount.cpp b/llvm/lib/Analysis/InstCount.cpp
index 83724caf521..4cde7935772 100644
--- a/llvm/lib/Analysis/InstCount.cpp
+++ b/llvm/lib/Analysis/InstCount.cpp
@@ -76,11 +76,11 @@ FunctionPass *llvm::createInstCountPass() { return new InstCount(); }
bool InstCount::runOnFunction(Function &F) {
unsigned StartMemInsts =
NumGetElementPtrInst + NumLoadInst + NumStoreInst + NumCallInst +
- NumInvokeInst + NumAllocaInst + NumMallocInst + NumFreeInst;
+ NumInvokeInst + NumAllocaInst + NumFreeInst;
visit(F);
unsigned EndMemInsts =
NumGetElementPtrInst + NumLoadInst + NumStoreInst + NumCallInst +
- NumInvokeInst + NumAllocaInst + NumMallocInst + NumFreeInst;
+ NumInvokeInst + NumAllocaInst + NumFreeInst;
TotalMemInst += EndMemInsts-StartMemInsts;
return false;
}
OpenPOWER on IntegriCloud