Skip to content

Commit e8e57d5

Browse files
committed
[VPlan] Strip entire block
1 parent 596b9d1 commit e8e57d5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,7 @@ Value *VPTransformState::get(const VPValue *Def, bool NeedsScalar) {
304304
}
305305

306306
bool IsSingleScalar = vputils::isSingleScalar(Def);
307-
308307
VPLane LastLane(IsSingleScalar ? 0 : VF.getFixedValue() - 1);
309-
// Check if there is a scalar value for the selected lane.
310-
if (!hasScalarValue(Def, LastLane)) {
311-
IsSingleScalar = true;
312-
LastLane = 0;
313-
}
314308

315309
// We need to construct the vector value for a single-scalar value by
316310
// broadcasting the scalar to all lanes.

0 commit comments

Comments
 (0)