diff options
| author | George Burgess IV <george.burgess.iv@gmail.com> | 2018-07-23 21:49:36 +0000 |
|---|---|---|
| committer | George Burgess IV <george.burgess.iv@gmail.com> | 2018-07-23 21:49:36 +0000 |
| commit | b00fb46479a3f9217408e007b02bb2200e7d6a19 (patch) | |
| tree | c95676d9b91ee4d21db4b3995ac91e28a94f0098 /llvm/lib/Transforms | |
| parent | d9c254771dcdb8bd5e39aada5b8336a4bff52195 (diff) | |
| download | bcm5719-llvm-b00fb46479a3f9217408e007b02bb2200e7d6a19.tar.gz bcm5719-llvm-b00fb46479a3f9217408e007b02bb2200e7d6a19.zip | |
[DebugCounters] Keep track of total counts
This patch makes debug counters keep track of the total number of times
we've called `shouldExecute` for each counter, so it's easier to build
automated tooling on top of these.
A patch to print these counts is coming soon.
Patch by Zhizhou Yang!
Differential Revision: https://reviews.llvm.org/D49560
llvm-svn: 337748
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/NewGVN.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp index 994d0d212cf..2eb887c986b 100644 --- a/llvm/lib/Transforms/Scalar/NewGVN.cpp +++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp @@ -861,7 +861,7 @@ private: // Debug counter info. When verifying, we have to reset the value numbering // debug counter to the same state it started in to get the same results. - std::pair<int, int> StartingVNCounter; + int64_t StartingVNCounter; }; } // end anonymous namespace |

