[PATCH] D65310: [JumpThreading] In updatePredecessorProfileMetadata, stop searching predecessor when the current bb is an unreachable single bb loop
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 26 11:34:20 PDT 2019
efriedma added subscribers: NutshellySima, brzycki.
efriedma added a comment.
Please rebase against trunk.
================
Comment at: llvm/lib/Transforms/Scalar/JumpThreading.cpp:1214
if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator()))
- updatePredecessorProfileMetadata(PN, BB);
+ updatePredecessorProfileMetadata(PN, BB, DTU->getDomTree());
----------------
Calling getDomTree() here is expensive; it flushes all updates in the DomTreeUpdater.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65310/new/
https://reviews.llvm.org/D65310
More information about the llvm-commits
mailing list