Without the BFI update, some hot blocks are incorrectly treated as cold code.
This fixes a FDO perf regression in the TSVC benchmark from D71288.
Paths
| Differential D73146
[PGO][PGSO] Update BFI in CodeGenPrepare::optimizeSelectInst. ClosedPublic Authored by hjyamauchi on Jan 21 2020, 3:53 PM.
Details Summary Without the BFI update, some hot blocks are incorrectly treated as cold code. This fixes a FDO perf regression in the TSVC benchmark from D71288.
Diff Detail
Event TimelineComment Actions lgtm
This revision is now accepted and ready to land.Jan 21 2020, 4:02 PM Closed by commit rGddbc728828c7: [PGO][PGSO] Update BFI in CodeGenPrepare::optimizeSelectInst. (authored by hjyamauchi). · Explain WhyJan 22 2020, 8:41 AM This revision was automatically updated to reflect the committed changes. Comment Actions Cherry-picked to 10.x in b5cdee9bdce49b31c74b0cf4f8231f66bbc2708e
Revision Contents
Diff 239613 llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/test/CodeGen/X86/cmov-into-branch.ll
|
I wonder how many more such bugs are there