@@ -1095,17 +1095,17 @@ template <typename RecipeTy> class VPPhiAccessors {
10951095 }
10961096
10971097public:
1098- // / Returns the \p I th incoming VPValue .
1099- VPValue *getIncomingValue (unsigned I ) const {
1100- return getAsRecipe ()->getOperand (I );
1098+ // / Returns the incoming VPValue with index \p Idx .
1099+ VPValue *getIncomingValue (unsigned Idx ) const {
1100+ return getAsRecipe ()->getOperand (Idx );
11011101 }
11021102
11031103 // / Returns an interator range over the incoming values
11041104 VPUser::const_operand_range incoming_values () const {
11051105 return getAsRecipe ()->operands ();
11061106 }
11071107
1108- // / Returns the \p I th incoming block .
1108+ // / Returns the incoming block with index \p Idx .
11091109 const VPBasicBlock *getIncomingBlock (unsigned Idx) const ;
11101110
11111111 using const_incoming_block_iterator =
@@ -1121,10 +1121,7 @@ template <typename RecipeTy> class VPPhiAccessors {
11211121 }
11221122 const_incoming_block_iterator incoming_block_end () const {
11231123 return const_incoming_block_iterator (
1124- detail::index_iterator (getAsRecipe ()->getVPDefID () ==
1125- VPDef::VPWidenIntOrFpInductionSC
1126- ? 2
1127- : getAsRecipe ()->getNumOperands ()),
1124+ detail::index_iterator (getAsRecipe ()->getNumOperands ()),
11281125 [this ](size_t Idx) { return getIncomingBlock (Idx); });
11291126 }
11301127
@@ -1133,7 +1130,7 @@ template <typename RecipeTy> class VPPhiAccessors {
11331130 return make_range (incoming_block_begin (), incoming_block_end ());
11341131 }
11351132
1136- // / Returns an iterator range over pairs of incoming values and corrsponding
1133+ // / Returns an iterator range over pairs of incoming values and correspondingx
11371134 // / incoming blocks.
11381135 detail::zippy<llvm::detail::zip_shortest, VPUser::const_operand_range,
11391136 const_incoming_blocks_range>
0 commit comments