Skip to content

Commit 85da9f8

Browse files
committed
[VPlan] Remove unused VPTransformState::VPValue2Value (NFCI).
Clean up unused member variable.
1 parent 12d29cd commit 85da9f8

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -829,10 +829,6 @@ void VPlan::prepareToExecute(Value *TripCountV, Value *VectorTripCountV,
829829
/// Assumes a single pre-header basic-block was created for this. Introduce
830830
/// additional basic-blocks as needed, and fill them all.
831831
void VPlan::execute(VPTransformState *State) {
832-
// Set the reverse mapping from VPValues to Values for code generation.
833-
for (auto &Entry : Value2VPValue)
834-
State->VPValue2Value[Entry.second] = Entry.first;
835-
836832
// Initialize CFG state.
837833
State->CFG.PrevVPBB = nullptr;
838834
State->CFG.ExitBB = State->CFG.PrevBB->getSingleSuccessor();

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,6 @@ struct VPTransformState {
383383
/// Hold a reference to the IRBuilder used to generate output IR code.
384384
IRBuilderBase &Builder;
385385

386-
VPValue2ValueTy VPValue2Value;
387-
388386
/// Hold a pointer to InnerLoopVectorizer to reuse its IR generation methods.
389387
InnerLoopVectorizer *ILV;
390388

0 commit comments

Comments
 (0)