We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 596b9d1 commit e8e57d5Copy full SHA for e8e57d5
llvm/lib/Transforms/Vectorize/VPlan.cpp
@@ -304,13 +304,7 @@ Value *VPTransformState::get(const VPValue *Def, bool NeedsScalar) {
304
}
305
306
bool IsSingleScalar = vputils::isSingleScalar(Def);
307
-
308
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
- }
314
315
// We need to construct the vector value for a single-scalar value by
316
// broadcasting the scalar to all lanes.
0 commit comments