Skip to content

Commit c5dbd00

Browse files
fhahnpawosm-arm
authored andcommitted
[VPlan] Get DataLayout from SE in VPExpandSCEVRecipe::execute (NFC)
This doesn't rely on State.CFG.
1 parent 118d349 commit c5dbd00

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
@@ -3357,7 +3357,7 @@ void VPExpandSCEVRecipe::execute(VPTransformState &State) {
33573357
return;
33583358
}
33593359

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

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

0 commit comments

Comments
 (0)