Skip to content

Commit aeae366

Browse files
committed
[VPlan] Make start operand non-optional for VPHeaderPHIRecipe (NFC).
The start value is always available, require it unconditionally.
1 parent df79276 commit aeae366

File tree

1 file changed

+2
-4
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+2
-4
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,10 +1641,8 @@ class VPVectorPointerRecipe : public VPRecipeWithIRFlags,
16411641
class VPHeaderPHIRecipe : public VPSingleDefRecipe {
16421642
protected:
16431643
VPHeaderPHIRecipe(unsigned char VPDefID, Instruction *UnderlyingInstr,
1644-
VPValue *Start = nullptr, DebugLoc DL = {})
1645-
: VPSingleDefRecipe(VPDefID, ArrayRef<VPValue *>(), UnderlyingInstr, DL) {
1646-
if (Start)
1647-
addOperand(Start);
1644+
VPValue *Start, DebugLoc DL = {})
1645+
: VPSingleDefRecipe(VPDefID, ArrayRef<VPValue *>({Start}), UnderlyingInstr, DL) {
16481646
}
16491647

16501648
public:

0 commit comments

Comments
 (0)