[PATCH] D132213: [AArch64][NFC] Replace setOperationAction and AddPromotedToType with setOperationPromotedToType
WangLian via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 19 01:42:48 PDT 2022
Jimerlife created this revision.
Jimerlife added reviewers: david-arm, sdesmalen, dmgreen, paulwalker-arm, benshi001.
Jimerlife added a project: LLVM.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
Jimerlife requested review of this revision.
Herald added subscribers: llvm-commits, jacquesguan.
Replace setOperationAction and AddPromotedToType with setOperationPromotedToType
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132213
Files:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Index: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
===================================================================
--- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -628,14 +628,10 @@
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132213.453924.patch
Type: text/x-patch
Size: 1286 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220819/2c805236/attachment.bin>
More information about the llvm-commits
mailing list