[all-commits] [llvm/llvm-project] 28759e: [MBP] Use profile count to compute tail dup cost i...
weiguozhi via All-commits
all-commits at lists.llvm.org
Tue Jul 21 11:19:52 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 28759e9fcc44274021ffeebc175863a4918e3cfd
https://github.com/llvm/llvm-project/commit/28759e9fcc44274021ffeebc175863a4918e3cfd
Author: Guozhi Wei <carrot at google.com>
Date: 2020-07-21 (Tue, 21 Jul 2020)
Changed paths:
M llvm/lib/CodeGen/MachineBlockPlacement.cpp
A llvm/test/CodeGen/X86/dup-cost.ll
Log Message:
-----------
[MBP] Use profile count to compute tail dup cost if it is available
Current tail duplication in machine block placement pass uses block frequency
information in cost model. But frequency number has only relative meaning
compared to other basic blocks in the same function. A large frequency number
doesn't mean it is hot and a small frequency number doesn't mean it is cold.
To overcome this problem, this patch uses profile count in cost model if it's
available. So we can tail duplicate real hot basic blocks.
Differential Revision: https://reviews.llvm.org/D83265
More information about the All-commits
mailing list