Skip to content

Commit 993ba23

Browse files
committed
Remove VPWidenPHIRecipe change
1 parent b315afb commit 993ba23

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2109,7 +2109,7 @@ class VPWidenPHIRecipe : public VPSingleDefRecipe, public VPPhiAccessors {
21092109
public:
21102110
/// Create a new VPWidenPHIRecipe for \p Phi with start value \p Start and
21112111
/// debug location \p DL.
2112-
VPWidenPHIRecipe(Instruction *Phi, VPValue *Start = nullptr, DebugLoc DL = {},
2112+
VPWidenPHIRecipe(PHINode *Phi, VPValue *Start = nullptr, DebugLoc DL = {},
21132113
const Twine &Name = "")
21142114
: VPSingleDefRecipe(VPDef::VPWidenPHISC, ArrayRef<VPValue *>(), Phi, DL),
21152115
Name(Name.str()) {

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2581,8 +2581,8 @@ expandVPWidenIntOrFpInduction(VPWidenIntOrFpInductionRecipe *WidenIVR,
25812581
Init = Builder.createNaryOp(AddOp, {SplatStart, Init}, FMFs, {}, "induction");
25822582

25832583
// Create the widened phi of the vector IV.
2584-
auto *WidePHI =
2585-
new VPWidenPHIRecipe(IV, nullptr, WidenIVR->getDebugLoc(), "vec.ind");
2584+
auto *WidePHI = new VPWidenPHIRecipe(WidenIVR->getPHINode(), nullptr,
2585+
WidenIVR->getDebugLoc(), "vec.ind");
25862586
WidePHI->addOperand(Init);
25872587
WidePHI->insertBefore(WidenIVR);
25882588

0 commit comments

Comments
 (0)