summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenPGO.h
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-05-02 00:48:27 +0000
committerJustin Bogner <mail@justinbogner.com>2015-05-02 00:48:27 +0000
commita909abfd290fc6159a13c91dd419e7ab959c4146 (patch)
tree02f5d0cbfe6ee2d2a81f3d13d867c723685cf9e3 /clang/lib/CodeGen/CodeGenPGO.h
parent38477db8c4a0bfddb7c749de2de50ccd47d4ef54 (diff)
downloadbcm5719-llvm-a909abfd290fc6159a13c91dd419e7ab959c4146.tar.gz
bcm5719-llvm-a909abfd290fc6159a13c91dd419e7ab959c4146.zip
InstrProf: Use a locally tracked current count in ComputeRegionCounts
No functional change. This just makes it more obvious that the logic in ComputeRegionCounts only depends on the counter map and local state. llvm-svn: 236370
Diffstat (limited to 'clang/lib/CodeGen/CodeGenPGO.h')
-rw-r--r--clang/lib/CodeGen/CodeGenPGO.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenPGO.h b/clang/lib/CodeGen/CodeGenPGO.h
index d73d030e7b0..13bb5a2fc86 100644
--- a/clang/lib/CodeGen/CodeGenPGO.h
+++ b/clang/lib/CodeGen/CodeGenPGO.h
@@ -60,11 +60,6 @@ public:
/// exits.
void setCurrentRegionCount(uint64_t Count) { CurrentRegionCount = Count; }
- /// Indicate that the current region is never reached, and thus should have a
- /// counter value of zero. This is important so that subsequent regions can
- /// correctly track their parent counts.
- void setCurrentRegionUnreachable() { setCurrentRegionCount(0); }
-
/// Check if an execution count is known for a given statement. If so, return
/// true and put the value in Count; else return false.
Optional<uint64_t> getStmtCount(const Stmt *S) {
OpenPOWER on IntegriCloud