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 | a3aaf85e231e391850ae77af194d4aa457ba6aa3 (patch) | |
| tree | 92b41932a45ae44868a6c6a1050f05ac9c96fa0a /llvm/lib/Analysis/InstCount.cpp | |
| parent | 8bcb1c68832c8897bf85b8346098bbb8099f3b94 (diff) | |
| download | bcm5719-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.cpp | 4 |
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; } |

