Skip to content

Commit f1d0b15

Browse files
author
Thorsten Schütt
committed
small fix
1 parent 7c31a81 commit f1d0b15

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,10 +1230,8 @@ class LegalizeRuleSet {
12301230
assert(MinTy.getElementType() == MaxTy.getElementType() &&
12311231
"Expected element types to agree");
12321232

1233-
if (MinTy.isScalableVector())
1234-
return actionIf(LegalizeAction::Unsupported, always);
1235-
if (MaxTy.isScalableVector())
1236-
return actionIf(LegalizeAction::Unsupported, always);
1233+
assert((!MinTy.isScalableVector() && !MaxTy.isScalableVector())
1234+
&& "Unexpected scalable vectors");
12371235

12381236
const LLT EltTy = MinTy.getElementType();
12391237
return clampMinNumElements(TypeIdx, EltTy, MinTy.getNumElements())

0 commit comments

Comments
 (0)