[PATCH] D33608: [Analysis] RemoveTotalMemInst counting in InstCount to avoid reading back other Statistic variables
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 17 19:41:57 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL308260: [Analysis] RemoveTotalMemInst counting in InstCount to avoid reading back other… (authored by ctopper).
Changed prior to commit:
https://reviews.llvm.org/D33608?vs=100741&id=107012#toc
Repository:
rL LLVM
https://reviews.llvm.org/D33608
Files:
llvm/trunk/lib/Analysis/InstCount.cpp
Index: llvm/trunk/lib/Analysis/InstCount.cpp
===================================================================
--- llvm/trunk/lib/Analysis/InstCount.cpp
+++ llvm/trunk/lib/Analysis/InstCount.cpp
@@ -26,7 +26,6 @@
STATISTIC(TotalInsts , "Number of instructions (of all types)");
STATISTIC(TotalBlocks, "Number of basic blocks");
STATISTIC(TotalFuncs , "Number of non-external functions");
-STATISTIC(TotalMemInst, "Number of memory instructions");
#define HANDLE_INST(N, OPCODE, CLASS) \
STATISTIC(Num ## OPCODE ## Inst, "Number of " #OPCODE " insts");
@@ -75,13 +74,6 @@
// function.
//
bool InstCount::runOnFunction(Function &F) {
- unsigned StartMemInsts =
- NumGetElementPtrInst + NumLoadInst + NumStoreInst + NumCallInst +
- NumInvokeInst + NumAllocaInst;
visit(F);
- unsigned EndMemInsts =
- NumGetElementPtrInst + NumLoadInst + NumStoreInst + NumCallInst +
- NumInvokeInst + NumAllocaInst;
- TotalMemInst += EndMemInsts-StartMemInsts;
return false;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33608.107012.patch
Type: text/x-patch
Size: 993 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170718/7094e1e3/attachment.bin>
More information about the llvm-commits
mailing list