[all-commits] [llvm/llvm-project] 6fdc6f: [PGO][InstrProf] Do not promote count if the exit ...
xur-llvm via All-commits
all-commits at lists.llvm.org
Fri Jul 24 17:15:30 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 6fdc6f6c7d34af60c45c405f448370a684ef6f2a
https://github.com/llvm/llvm-project/commit/6fdc6f6c7d34af60c45c405f448370a684ef6f2a
Author: Rong Xu <xur at google.com>
Date: 2020-07-24 (Fri, 24 Jul 2020)
Changed paths:
M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
Log Message:
-----------
[PGO][InstrProf] Do not promote count if the exit blocks contains ret instruction
Skip profile count promotion if any of the ExitBlocks contains a ret
instruction. This is to prevent dumping of incomplete profile -- if the
the loop is a long running loop and dump is called in the middle
of the loop, the result profile is incomplete.
ExitBlocks containing a ret instruction is an indication of a long running
loop -- early exit to error handling code.
Differential Revision: https://reviews.llvm.org/D84379
More information about the All-commits
mailing list