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 fdc8285 commit a2c42ffCopy full SHA for a2c42ff
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -3346,12 +3346,7 @@ void VPlanTransforms::convertToConcreteRecipes(VPlan &Plan) {
3346
VectorStep = Builder.createWidenCast(CastOp, VectorStep, IVTy);
3347
}
3348
3349
- [[maybe_unused]] auto *ConstStep =
3350
- ScalarStep->isLiveIn()
3351
- ? dyn_cast<ConstantInt>(ScalarStep->getLiveInIRValue())
3352
- : nullptr;
3353
- assert(!ConstStep || ConstStep->getValue() != 1);
3354
- (void)ConstStep;
+ assert(!match(ScalarStep, m_One()) && "Expected non-unit scalar-step");
3355
if (TypeInfo.inferScalarType(ScalarStep) != IVTy) {
3356
ScalarStep =
3357
Builder.createWidenCast(Instruction::Trunc, ScalarStep, IVTy);
0 commit comments