Skip to content

Commit ca386e1

Browse files
Linting
1 parent f604fbe commit ca386e1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -826,13 +826,15 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
826826
{{s32, s16}, {s64, s16}, {s64, s32}, {v4s32, v4s16}, {v2s64, v2s32}})
827827
.libcallFor({{s128, s64}, {s128, s32}, {s128, s16}})
828828
.moreElementsToNextPow2(0)
829-
.widenScalarIf([](const LegalityQuery &Q) {
830-
LLT DstTy = Q.Types[0];
831-
LLT SrcTy = Q.Types[1];
832-
return SrcTy.isVector() && DstTy.isVector() &&
833-
SrcTy.getScalarSizeInBits() == 16 &&
834-
DstTy.getScalarSizeInBits() == 64;
835-
}, changeElementTo(1, s32))
829+
.widenScalarIf(
830+
[](const LegalityQuery &Q) {
831+
LLT DstTy = Q.Types[0];
832+
LLT SrcTy = Q.Types[1];
833+
return SrcTy.isVector() && DstTy.isVector() &&
834+
SrcTy.getScalarSizeInBits() == 16 &&
835+
DstTy.getScalarSizeInBits() == 64;
836+
},
837+
changeElementTo(1, s32))
836838
.clampNumElements(0, v4s32, v4s32)
837839
.clampNumElements(0, v2s64, v2s64)
838840
.scalarize(0);

0 commit comments

Comments
 (0)