[PATCH] D86078: [AArch64] Improved lowering for saturating float to int.
Bevin Hansson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 17 07:26:12 PDT 2020
ebevhan created this revision.
ebevhan added a reviewer: t.p.northover.
Herald added subscribers: llvm-commits, danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.
ebevhan requested review of this revision.
Adapted from D54696 <https://reviews.llvm.org/D54696> by @nikic.
This patch improves the default lowering of saturating
float to int conversions, FP_TO_[SU]INT_SAT, on AArch64.
Since the default FP_TO_INT operations on AArch64 are
already saturating, we can take advantage of this
behavior in the lowering for the saturating operations.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D86078
Files:
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/test/CodeGen/AArch64/fptosi-sat-scalar.ll
llvm/test/CodeGen/AArch64/fptosi-sat-vector.ll
llvm/test/CodeGen/AArch64/fptoui-sat-scalar.ll
llvm/test/CodeGen/AArch64/fptoui-sat-vector.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86078.286018.patch
Type: text/x-patch
Size: 195007 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200817/f5e65e4b/attachment-0001.bin>
More information about the llvm-commits
mailing list