]> granicus.if.org Git - clang/commit
InstrProf: Replace the RegionCounter class with a simpler direct approach
authorJustin Bogner <mail@justinbogner.com>
Fri, 1 May 2015 23:41:09 +0000 (23:41 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 1 May 2015 23:41:09 +0000 (23:41 +0000)
commit8016099d239cae8bb2304344fd1522ad19e9835b
tree4c1687d918d8c7f5adbe3b68fbc2945c74814821
parenteed1e55e77ec9cbf410518b53ce54783bc528317
InstrProf: Replace the RegionCounter class with a simpler direct approach

This removes the RegionCounter class, which is only used as a helper
in teh ComputeRegionCounts stmt visitor. This class is just an extra
layer of abstraction that makes the code harder to follow at this
point, and removing it makes the logic quite a bit more direct.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236364 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPGO.cpp
lib/CodeGen/CodeGenPGO.h