Skip to content

Commit 9160fbb

Browse files
committed
nfc, move getDataLayout
1 parent 7ee0779 commit 9160fbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3769,7 +3769,6 @@ void VPInterleaveEVLRecipe::execute(VPTransformState &State) {
37693769
State.Builder.CreateVectorSplat(WideVF, State.Builder.getTrue());
37703770
}
37713771

3772-
const DataLayout &DL = Instr->getDataLayout();
37733772
// Vectorize the interleaved load group.
37743773
if (isa<LoadInst>(Instr)) {
37753774
CallInst *NewLoad = State.Builder.CreateIntrinsic(
@@ -3790,6 +3789,7 @@ void VPInterleaveEVLRecipe::execute(VPTransformState &State) {
37903789
NewLoad->getType(), NewLoad,
37913790
/*FMFSource=*/nullptr, "strided.vec");
37923791

3792+
const DataLayout &DL = Instr->getDataLayout();
37933793
for (unsigned I = 0, J = 0; I < InterleaveFactor; ++I) {
37943794
Instruction *Member = Group->getMember(I);
37953795

@@ -3820,6 +3820,7 @@ void VPInterleaveEVLRecipe::execute(VPTransformState &State) {
38203820
// Collect the stored vector from each member.
38213821
SmallVector<Value *, 4> StoredVecs;
38223822
unsigned StoredIdx = 0;
3823+
const DataLayout &DL = Instr->getDataLayout();
38233824
for (unsigned I = 0; I < InterleaveFactor; I++) {
38243825
Instruction *Member = Group->getMember(I);
38253826

0 commit comments

Comments
 (0)