Files
archived-llvm-mirror/test/Transforms/PGOProfile/Inputs/select2.proftext
Rong Xu 95093c2f32 [PGO] Fix select instruction annotation
Summary:
Select instruction annotation in IR PGO uses the edge count to infer the
branch count. It's currently placed in setInstrumentedCounts() where
no all the BB counts have been computed. This leads to wrong branch weights.
Move the annotation after all BB counts are populated.

Reviewers: davidxl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D25961

llvm-svn: 285128
2016-10-25 21:47:24 +00:00

12 lines
117 B
Plaintext

# IR level Instrumentation Flag
:ir
foo
# Func Hash:
72057628175588252
# Num Counters:
3
# Counter Values:
800
3
300