Skip to content

Commit c97fb27

Browse files
fhahngithub-actions[bot]
authored andcommitted
Automerge: [VPlan] Get DataLayout from SE in VPExpandSCEVRecipe::execute (NFC)
This doesn't rely on State.CFG.
2 parents 3cb5394 + 3463174 commit c97fb27

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)