File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3769,7 +3769,6 @@ void VPInterleaveEVLRecipe::execute(VPTransformState &State) {
3769
3769
State.Builder .CreateVectorSplat (WideVF, State.Builder .getTrue ());
3770
3770
}
3771
3771
3772
- const DataLayout &DL = Instr->getDataLayout ();
3773
3772
// Vectorize the interleaved load group.
3774
3773
if (isa<LoadInst>(Instr)) {
3775
3774
CallInst *NewLoad = State.Builder .CreateIntrinsic (
@@ -3790,6 +3789,7 @@ void VPInterleaveEVLRecipe::execute(VPTransformState &State) {
3790
3789
NewLoad->getType (), NewLoad,
3791
3790
/* FMFSource=*/ nullptr , " strided.vec" );
3792
3791
3792
+ const DataLayout &DL = Instr->getDataLayout ();
3793
3793
for (unsigned I = 0 , J = 0 ; I < InterleaveFactor; ++I) {
3794
3794
Instruction *Member = Group->getMember (I);
3795
3795
@@ -3820,6 +3820,7 @@ void VPInterleaveEVLRecipe::execute(VPTransformState &State) {
3820
3820
// Collect the stored vector from each member.
3821
3821
SmallVector<Value *, 4 > StoredVecs;
3822
3822
unsigned StoredIdx = 0 ;
3823
+ const DataLayout &DL = Instr->getDataLayout ();
3823
3824
for (unsigned I = 0 ; I < InterleaveFactor; I++) {
3824
3825
Instruction *Member = Group->getMember (I);
3825
3826
You can’t perform that action at this time.
0 commit comments