Skip to content

Commit aa16689

Browse files
committed
[VPlan] Use recipe type to avoid getDefiningRecipe call (NFC).
Suggested by @ayal during review of D136068, thanks!
1 parent 310b619 commit aa16689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ VPValue *vputils::getOrCreateVPValueForSCEVExpr(VPlan &Plan, const SCEV *Expr,
11111111
return Plan.getOrAddExternalDef(E->getValue());
11121112

11131113
VPBasicBlock *Preheader = Plan.getEntry()->getEntryBasicBlock();
1114-
VPValue *Step = new VPExpandSCEVRecipe(Expr, SE);
1115-
Preheader->appendRecipe(Step->getDefiningRecipe());
1114+
VPExpandSCEVRecipe *Step = new VPExpandSCEVRecipe(Expr, SE);
1115+
Preheader->appendRecipe(Step);
11161116
return Step;
11171117
}

0 commit comments

Comments
 (0)