[llvm] 53bc7d5 - [AArch64][NFC] Replace setOperationAction and AddPromotedToType
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 21 19:13:25 PDT 2022
Author: wanglian
Date: 2022-08-22T09:59:47+08:00
New Revision: 53bc7d5f08c80d71b24df63a1904f11f1f36e6fb
URL: https://github.com/llvm/llvm-project/commit/53bc7d5f08c80d71b24df63a1904f11f1f36e6fb
DIFF: https://github.com/llvm/llvm-project/commit/53bc7d5f08c80d71b24df63a1904f11f1f36e6fb.diff
LOG: [AArch64][NFC] Replace setOperationAction and AddPromotedToType
with setOperationPromotedToType.
Reviewed By: dmgreen
Differential Revision: https://reviews.llvm.org/D132213
Added:
Modified:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 0cdfbbee0325b..219bb1dfbac4b 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -628,14 +628,10 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
setOperationAction(Op, MVT::f16, Custom);
// promote v4f16 to v4f32 when that is known to be safe.
- setOperationAction(ISD::FADD, MVT::v4f16, Promote);
- setOperationAction(ISD::FSUB, MVT::v4f16, Promote);
- setOperationAction(ISD::FMUL, MVT::v4f16, Promote);
- setOperationAction(ISD::FDIV, MVT::v4f16, Promote);
- AddPromotedToType(ISD::FADD, MVT::v4f16, MVT::v4f32);
- AddPromotedToType(ISD::FSUB, MVT::v4f16, MVT::v4f32);
- AddPromotedToType(ISD::FMUL, MVT::v4f16, MVT::v4f32);
- AddPromotedToType(ISD::FDIV, MVT::v4f16, MVT::v4f32);
+ setOperationPromotedToType(ISD::FADD, MVT::v4f16, MVT::v4f32);
+ setOperationPromotedToType(ISD::FSUB, MVT::v4f16, MVT::v4f32);
+ setOperationPromotedToType(ISD::FMUL, MVT::v4f16, MVT::v4f32);
+ setOperationPromotedToType(ISD::FDIV, MVT::v4f16, MVT::v4f32);
setOperationAction(ISD::FABS, MVT::v4f16, Expand);
setOperationAction(ISD::FNEG, MVT::v4f16, Expand);
More information about the llvm-commits
mailing list