[PATCH] D65060: [LICM] Make Loop ICM profile aware
Vedant Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 22 11:35:43 PDT 2019
vsk added subscribers: davidxl, vsk.
vsk requested changes to this revision.
vsk added inline comments.
This revision now requires changes to proceed.
================
Comment at: llvm/lib/Transforms/Scalar/LICM.cpp:804
+ BasicBlock *SrcBlock = I.getParent();
+ if (BFI->getBlockFreq(SrcBlock) < BFI->getBlockFreq(DstBlock)) {
+ ORE->emit([&]() {
----------------
IIRC BFI returns a 0 frequency if information about a block is missing. If information for either block is missing, shouldn't this fall back to the non-PGO behavior?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65060/new/
https://reviews.llvm.org/D65060
More information about the llvm-commits
mailing list