[llvm] [VPlan] Update scalar induction resume values in VPlan. (PR #110577)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 14 16:05:14 PST 2024
================
@@ -629,7 +629,8 @@ Value *VPInstruction::generate(VPTransformState &State) {
State.CFG
.VPBB2IRBB[cast<VPBasicBlock>(getParent()->getSinglePredecessor())];
NewPhi->addIncoming(IncomingFromVPlanPred, VPlanPred);
- for (auto *OtherPred : predecessors(Builder.GetInsertBlock())) {
+ for (auto *OtherPred :
+ reverse(to_vector(predecessors(Builder.GetInsertBlock())))) {
----------------
ayalz wrote:
Better reverse the predecessors when they are set, rather than here during VPlan::execute()?
https://github.com/llvm/llvm-project/pull/110577
More information about the llvm-commits
mailing list