Skip to content

Commit 87cbef7

Browse files
committed
!fixup add assert, thanks!
1 parent bb81e6f commit 87cbef7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,8 @@ static void legalizeAndOptimizeInductions(VPlan &Plan) {
795795

796796
// Update scalar users of IV to use Step instead.
797797
if (!HasOnlyVectorVFs) {
798+
assert(!Plan.hasScalableVF() &&
799+
"plans containing a scalar VF cannot also include scalable VFs");
798800
WideIV->replaceAllUsesWith(Steps);
799801
} else {
800802
bool HasScalableVF = Plan.hasScalableVF();

0 commit comments

Comments
 (0)