[llvm] [JumpThreading] Materialize PHIs in duplicateCondBranchOnPHIIntoPred (PR #204859)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 23 08:52:32 PDT 2026
================
@@ -2792,10 +2796,15 @@ bool JumpThreadingPass::duplicateCondBranchOnPHIIntoPred(
// Remove the unconditional branch at the end of the PredBB block.
OldPredBranch->eraseFromParent();
- if (auto *BPI = getBPI())
- BPI->copyEdgeProbabilities(BB, PredBB);
DTU->applyUpdatesPermissive(Updates);
+ BasicBlock *ThreadBB = PredBB;
+ if (PredBB != OldPredBB && MergeBlockIntoPredecessor(PredBB, DTU.get()))
----------------
lijinpei-amd wrote:
Already passes only the DomTreeUpdater. DTU is std::unique_ptr<DomTreeUpdater>, so this is unique_ptr's get(), not DomTreeUpdater::getDomTree() — no flush.
https://github.com/llvm/llvm-project/pull/204859
More information about the llvm-commits
mailing list