[PATCH] D151182: [LegalizeTypes][ARM][AArch6][RISCV][VE][WebAssembly] Add special case for smin(X, -1) and smax(X, 0) to ExpandIntRes_MINMAX.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 23 00:25:48 PDT 2023
craig.topper created this revision.
craig.topper added reviewers: RKSimon, efriedma, liaolucy, jrtc27, reames.
Herald added subscribers: jobnoorman, luke, pmatos, asb, VincentWu, armkevincheng, sjarus, eric-k256, vkmr, frasercrmck, ecnelises, luismarques, apazos, sameer.abuasal, s.egerton, dmgreen, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, sunfish, simoncook, johnrusso, rbar, hiraditya, kristof.beyls, jgravelle-google, arichardson, sbc100, dschuff.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD, MaskRay, aheejin.
Herald added a project: LLVM.
We can compute a simpler expression for Lo for these cases. This
is an alternative for the test cases in D151180 <https://reviews.llvm.org/D151180> that works for
more targets.
I view this as similar to some of the special cases we
have for expanding setcc operands.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151182
Files:
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/test/CodeGen/AArch64/fpclamptosat.ll
llvm/test/CodeGen/AArch64/fpclamptosat_vec.ll
llvm/test/CodeGen/ARM/fpclamptosat.ll
llvm/test/CodeGen/ARM/fpclamptosat_vec.ll
llvm/test/CodeGen/RISCV/fpclamptosat.ll
llvm/test/CodeGen/RISCV/min-max.ll
llvm/test/CodeGen/RISCV/rvv/fpclamptosat_vec.ll
llvm/test/CodeGen/Thumb2/mve-fpclamptosat_vec.ll
llvm/test/CodeGen/VE/Scalar/smax.ll
llvm/test/CodeGen/WebAssembly/fpclamptosat.ll
llvm/test/CodeGen/WebAssembly/fpclamptosat_vec.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151182.524588.patch
Type: text/x-patch
Size: 111510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230523/4a1031e0/attachment.bin>
More information about the llvm-commits
mailing list