Skip to content

Commit 53bc7d5

Browse files
wanglianwanglian
authored andcommitted
[AArch64][NFC] Replace setOperationAction and AddPromotedToType
with setOperationPromotedToType. Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D132213
1 parent cab58b7 commit 53bc7d5

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -628,14 +628,10 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
628628
setOperationAction(Op, MVT::f16, Custom);
629629

630630
// promote v4f16 to v4f32 when that is known to be safe.
631-
setOperationAction(ISD::FADD, MVT::v4f16, Promote);
632-
setOperationAction(ISD::FSUB, MVT::v4f16, Promote);
633-
setOperationAction(ISD::FMUL, MVT::v4f16, Promote);
634-
setOperationAction(ISD::FDIV, MVT::v4f16, Promote);
635-
AddPromotedToType(ISD::FADD, MVT::v4f16, MVT::v4f32);
636-
AddPromotedToType(ISD::FSUB, MVT::v4f16, MVT::v4f32);
637-
AddPromotedToType(ISD::FMUL, MVT::v4f16, MVT::v4f32);
638-
AddPromotedToType(ISD::FDIV, MVT::v4f16, MVT::v4f32);
631+
setOperationPromotedToType(ISD::FADD, MVT::v4f16, MVT::v4f32);
632+
setOperationPromotedToType(ISD::FSUB, MVT::v4f16, MVT::v4f32);
633+
setOperationPromotedToType(ISD::FMUL, MVT::v4f16, MVT::v4f32);
634+
setOperationPromotedToType(ISD::FDIV, MVT::v4f16, MVT::v4f32);
639635

640636
setOperationAction(ISD::FABS, MVT::v4f16, Expand);
641637
setOperationAction(ISD::FNEG, MVT::v4f16, Expand);

0 commit comments

Comments
 (0)