Skip to content

Commit a9a9ed1

Browse files
committed
address comments
1 parent d282cc8 commit a9a9ed1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18424,13 +18424,7 @@ AArch64TargetLowering::BuildSDIVPow2(SDNode *N, const APInt &Divisor,
1842418424
// If SVE is available, we can generate
1842518425
// sdiv(x,y) -> ptrue + asrd , where 'y' is positive pow-2 divisor.
1842618426
// sdiv(x,y) -> ptrue + asrd + subr , where 'y' is negative pow-2 divisor.
18427-
if (Subtarget->hasSVE() && N->getValueType(0).isVector())
18428-
return SDValue(N, 0);
18429-
18430-
// For scalable and fixed types, mark them as cheap so we can handle it much
18431-
// later. This allows us to handle larger than legal types.
18432-
if (VT.isScalableVector() ||
18433-
(VT.isFixedLengthVector() && Subtarget->useSVEForFixedLengthVectors()))
18427+
if (VT.isVector() && Subtarget->isSVEorStreamingSVEAvailable())
1843418428
return SDValue(N, 0);
1843518429

1843618430
// fold (sdiv X, pow2)

0 commit comments

Comments
 (0)