[llvm] [VPlan] Replace BranchOnCount with Compare + BranchOnCond (NFC). (PR #172181)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 13 22:02:25 PST 2025
================
@@ -659,17 +639,20 @@ Value *VPInstruction::generate(VPTransformState &State) {
}
case VPInstruction::BranchOnCond: {
Value *Cond = State.get(getOperand(0), VPLane(0));
- auto *Br = createCondBranch(Cond, getParent(), State);
+ // Replace the temporary unreachable terminator with a new conditional
+ // branch, hooking it up to backward destination for latch blocks now, and
+ // to forward destination(s) later when they are created.
+ VPBasicBlock *SecondVPSucc =
----------------
lukel97 wrote:
Does the "Second successor may be backwards - iff it is already in VPBB2IRBB." comment still hold?
https://github.com/llvm/llvm-project/pull/172181
More information about the llvm-commits
mailing list