Skip to content

Commit 3463174

Browse files
committed
[VPlan] Get DataLayout from SE in VPExpandSCEVRecipe::execute (NFC)
This doesn't rely on State.CFG.
1 parent 5fc891b commit 3463174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3455,7 +3455,7 @@ void VPExpandSCEVRecipe::execute(VPTransformState &State) {
34553455
return;
34563456
}
34573457

3458-
const DataLayout &DL = State.CFG.PrevBB->getDataLayout();
3458+
const DataLayout &DL = SE.getDataLayout();
34593459
SCEVExpander Exp(SE, DL, "induction", /*PreserveLCSSA=*/true);
34603460

34613461
Value *Res = Exp.expandCodeFor(Expr, Expr->getType(),

0 commit comments

Comments
 (0)