[PATCH] D18491: [PGO] Don't set the function hotness attribute when populating counters
Rong Xu via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 26 08:21:47 PDT 2016
xur created this revision.
xur added a reviewer: davidxl.
xur added subscribers: llvm-commits, xur.
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4205 bytes
Desc: not available
More information about the llvm-commits