[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.
http://reviews.llvm.org/D18491
Files:
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18491.51715.patch
Type: text/x-patch
Size: 4205 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160326/55f8eccd/attachment.bin>
More information about the llvm-commits
mailing list