[PATCH] D111236: [AArch64] Improve fptosi.sat lowering
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 6 08:37:37 PDT 2021
dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, efriedma, kmclaughlin, samtebbs, t.p.northover.
Herald added subscribers: hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.
Improve the lowering of scalar fptosi.sat and fptoui.sat for saturating widths smaller than legal types by using the fact that the legal type will saturate under aarch64, and saturating the result further using min/max.
https://reviews.llvm.org/D111236
Files:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
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: D111236.377556.patch
Type: text/x-patch
Size: 64404 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211006/0a7c6321/attachment.bin>
More information about the llvm-commits
mailing list