Skip to content

Commit ea9475e

Browse files
committed
Using hasFPARMv8 over hasFullFP16
Change-Id: I92af1dc9413486d2c20d90aebf0e377b077ad428
1 parent e88f793 commit ea9475e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,8 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
546546
setOperationAction(ISD::STRICT_FP_ROUND, MVT::f16, Custom);
547547
setOperationAction(ISD::STRICT_FP_ROUND, MVT::f32, Custom);
548548
setOperationAction(ISD::STRICT_FP_ROUND, MVT::f64, Custom);
549-
if (!Subtarget->hasFullFP16())
550-
setOperationAction(ISD::FP_ROUND, MVT::f16, Expand);
551-
else
549+
550+
if (Subtarget->hasFPARMv8())
552551
setOperationAction(ISD::FP_ROUND, MVT::f16, Custom);
553552

554553
setOperationAction(ISD::FP_TO_UINT_SAT, MVT::i32, Custom);
@@ -1883,7 +1882,6 @@ void AArch64TargetLowering::addTypeForFixedLengthSVE(MVT VT,
18831882
}
18841883

18851884
// Lower fixed length vector operations to scalable equivalents.
1886-
setOperationAction(ISD::ANY_EXTEND, MVT::f32, Legal);
18871885
setOperationAction(ISD::ABS, VT, Custom);
18881886
setOperationAction(ISD::ADD, VT, Custom);
18891887
setOperationAction(ISD::AND, VT, Custom);
@@ -24620,7 +24618,7 @@ void AArch64TargetLowering::ReplaceBITCASTResults(
2462024618
EVT SrcVT = Op.getValueType();
2462124619

2462224620
// Default to the generic legalizer
24623-
if (SrcVT == MVT::f16 && !Subtarget->hasFullFP16())
24621+
if (SrcVT == MVT::f16 && !Subtarget->hasFPARMv8())
2462424622
return;
2462524623

2462624624
if (VT == MVT::v2i16 && SrcVT == MVT::i32) {

0 commit comments

Comments
 (0)