We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a46ee73 commit 1091fadCopy full SHA for 1091fad
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -631,8 +631,8 @@ Value *VPInstruction::generate(VPTransformState &State) {
631
NewPhi->addIncoming(IncomingFromVPlanPred, VPlanPred);
632
// TODO: Predecessors are temporarily reversed to reduce test changes.
633
// Remove it and update remaining tests after functional change landed.
634
- for (auto *OtherPred :
635
- reverse(to_vector(predecessors(Builder.GetInsertBlock())))) {
+ auto Predecessors = to_vector(predecessors(Builder.GetInsertBlock()));
+ for (auto *OtherPred : reverse(Predecessors)) {
636
assert(OtherPred != VPlanPred &&
637
"VPlan predecessors should not be connected yet");
638
NewPhi->addIncoming(IncomingFromOtherPreds, OtherPred);
0 commit comments