Skip to content

Commit b89853b

Browse files
[LLVM] Fix whitespace issues in VPBlendRecipe::execute.
1 parent 0f28aa6 commit b89853b

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,24 +1652,25 @@ void VPBlendRecipe::execute(VPTransformState &State) {
16521652
// In0)))
16531653
// Note that Mask0 is never used: lanes for which no path reaches this phi and
16541654
// 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+
16731674
for (unsigned Part = 0; Part < State.UF; ++Part)
16741675
State.set(this, Entry[Part], Part, OnlyFirstLaneUsed);
16751676
}

0 commit comments

Comments
 (0)