diff options
author | Rong Xu <xur@google.com> | 2016-03-28 17:08:56 +0000 |
---|---|---|
committer | Rong Xu <xur@google.com> | 2016-03-28 17:08:56 +0000 |
commit | 6090afd7447997bd6960c0ca60931671b02a6f44 (patch) | |
tree | 3c68049f29e8e57d45eaeb516a1e8993d09f15c1 /llvm/lib/LineEditor/LineEditor.cpp | |
parent | ad154c837e4428842cfe5c0f9dbfcc42ba7a1454 (diff) | |
download | llvm-6090afd7447997bd6960c0ca60931671b02a6f44.zip llvm-6090afd7447997bd6960c0ca60931671b02a6f44.tar.gz llvm-6090afd7447997bd6960c0ca60931671b02a6f44.tar.bz2 |
[PGO] Don't set the function hotness attribute when populating counters
Don't set the function hotness attribute on the fly. This changes the CFG
branch probability of the caller function, which leads to inconsistent BB
ordering. This patch moves the attribute setting to a separated loop after
the counts in all functions are populated.
Fixes PR27024 - PGO instrumentation profile data is not reflected in correct
basic blocks.
Differential Revision: http://reviews.llvm.org/D18491
llvm-svn: 264594
Diffstat (limited to 'llvm/lib/LineEditor/LineEditor.cpp')
0 files changed, 0 insertions, 0 deletions