summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorGeorge Burgess IV <george.burgess.iv@gmail.com>2018-07-23 21:49:36 +0000
committerGeorge Burgess IV <george.burgess.iv@gmail.com>2018-07-23 21:49:36 +0000
commitb00fb46479a3f9217408e007b02bb2200e7d6a19 (patch)
treec95676d9b91ee4d21db4b3995ac91e28a94f0098 /llvm/lib/Transforms
parentd9c254771dcdb8bd5e39aada5b8336a4bff52195 (diff)
downloadbcm5719-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.cpp2
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
OpenPOWER on IntegriCloud