Skip to content

Commit 45aed33

Browse files
author
Thorsten Schütt
committed
update legalizer
1 parent cdb73d3 commit 45aed33

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,9 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
128128
.clampNumElements(0, v2s64, v2s64)
129129
.moreElementsToNextPow2(0);
130130

131-
auto &IntegerArithmeticActions =
132-
getActionDefinitionsBuilder({G_ADD, G_SUB, G_AND, G_OR, G_XOR});
133-
if (HasSVE)
134-
IntegerArithmeticActions.legalFor({nxv16s8, nxv8s16, nxv4s32, nxv2s64});
135-
IntegerArithmeticActions
131+
getActionDefinitionsBuilder({G_ADD, G_SUB, G_AND, G_OR, G_XOR})
136132
.legalFor({s32, s64, v2s32, v2s64, v4s32, v4s16, v8s16, v16s8, v8s8})
133+
.legalFor(HasSVE, {nxv16s8, nxv8s16, nxv4s32, nxv2s64})
137134
.widenScalarToNextPow2(0)
138135
.clampScalar(0, s32, s64)
139136
.clampMaxNumElements(0, s8, 16)

0 commit comments

Comments
 (0)