[PATCH] D92118: [SelectionDAGBuilder] Add SPF_NABS support to visitSelect

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 25 10:57:31 PST 2020


craig.topper created this revision.
craig.topper added reviewers: spatel, RKSimon.
Herald added subscribers: frasercrmck, luismarques, apazos, sameer.abuasal, pzheng, s.egerton, lenary, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, nemanjai.
Herald added a project: LLVM.
craig.topper requested review of this revision.
Herald added a subscriber: MaskRay.

We currently don't match this which limits the effectiveness of D91120 <https://reviews.llvm.org/D91120> until InstCombine starts canonicalizing to llvm.abs. This should be easy to remove if/when we remove the SPF_ABS handling.


https://reviews.llvm.org/D92118

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/test/CodeGen/PowerPC/select.ll
  llvm/test/CodeGen/RISCV/neg-abs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92118.307662.patch
Type: text/x-patch
Size: 6516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201125/f689c478/attachment.bin>


More information about the llvm-commits mailing list