Skip to content

Commit ae00879

Browse files
committed
[VPlan] Use VPTransformState::set in widenGEP.
This patch updates widenGEP to manage the resulting vector values using the VPValue of VPWidenGEP recipe.
1 parent 5646280 commit ae00879

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4322,7 +4322,7 @@ void InnerLoopVectorizer::widenGEP(GetElementPtrInst *GEP, VPValue *VPDef,
43224322
auto *Clone = Builder.Insert(GEP->clone());
43234323
for (unsigned Part = 0; Part < UF; ++Part) {
43244324
Value *EntryPart = Builder.CreateVectorSplat(VF, Clone);
4325-
VectorLoopValueMap.setVectorValue(GEP, Part, EntryPart);
4325+
State.set(VPDef, GEP, EntryPart, Part);
43264326
addMetadata(EntryPart, GEP);
43274327
}
43284328
} else {
@@ -4359,7 +4359,7 @@ void InnerLoopVectorizer::widenGEP(GetElementPtrInst *GEP, VPValue *VPDef,
43594359
: Builder.CreateGEP(GEP->getSourceElementType(), Ptr, Indices);
43604360
assert((VF.isScalar() || NewGEP->getType()->isVectorTy()) &&
43614361
"NewGEP is not a pointer vector");
4362-
VectorLoopValueMap.setVectorValue(GEP, Part, NewGEP);
4362+
State.set(VPDef, GEP, NewGEP, Part);
43634363
addMetadata(NewGEP, GEP);
43644364
}
43654365
}

0 commit comments

Comments
 (0)