@@ -1652,24 +1652,25 @@ void VPBlendRecipe::execute(VPTransformState &State) {
1652
1652
// In0)))
1653
1653
// Note that Mask0 is never used: lanes for which no path reaches this phi and
1654
1654
// are essentially undef are taken from In0.
1655
- VectorParts Entry (State.UF );
1656
- bool OnlyFirstLaneUsed = vputils::onlyFirstLaneUsed (this );
1657
- for (unsigned In = 0 ; In < NumIncoming; ++In) {
1658
- for (unsigned Part = 0 ; Part < State.UF ; ++Part) {
1659
- // We might have single edge PHIs (blocks) - use an identity
1660
- // 'select' for the first PHI operand.
1661
- Value *In0 = State.get (getIncomingValue (In), Part, OnlyFirstLaneUsed);
1662
- if (In == 0 )
1663
- Entry[Part] = In0; // Initialize with the first incoming value.
1664
- else {
1665
- // Select between the current value and the previous incoming edge
1666
- // based on the incoming mask.
1667
- Value *Cond = State.get (getMask (In), Part, OnlyFirstLaneUsed);
1668
- Entry[Part] =
1669
- State.Builder .CreateSelect (Cond, In0, Entry[Part], " predphi" );
1670
- }
1671
- }
1672
- }
1655
+ VectorParts Entry (State.UF );
1656
+ bool OnlyFirstLaneUsed = vputils::onlyFirstLaneUsed (this );
1657
+ for (unsigned In = 0 ; In < NumIncoming; ++In) {
1658
+ for (unsigned Part = 0 ; Part < State.UF ; ++Part) {
1659
+ // We might have single edge PHIs (blocks) - use an identity
1660
+ // 'select' for the first PHI operand.
1661
+ Value *In0 = State.get (getIncomingValue (In), Part, OnlyFirstLaneUsed);
1662
+ if (In == 0 )
1663
+ Entry[Part] = In0; // Initialize with the first incoming value.
1664
+ else {
1665
+ // Select between the current value and the previous incoming edge
1666
+ // based on the incoming mask.
1667
+ Value *Cond = State.get (getMask (In), Part, OnlyFirstLaneUsed);
1668
+ Entry[Part] =
1669
+ State.Builder .CreateSelect (Cond, In0, Entry[Part], " predphi" );
1670
+ }
1671
+ }
1672
+ }
1673
+
1673
1674
for (unsigned Part = 0 ; Part < State.UF ; ++Part)
1674
1675
State.set (this , Entry[Part], Part, OnlyFirstLaneUsed);
1675
1676
}
0 commit comments