[PATCH] D124951: [SelectionDAG] Teach getNode to fold (max/min X, X) -> X.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 4 11:38:22 PDT 2022


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

This happens to fix the pr55271 test case, but does not solve
the underlying cause which is a lack of freeze in urem expansion.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124951

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/test/CodeGen/RISCV/min-max.ll
  llvm/test/CodeGen/RISCV/pr55271.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124951.427094.patch
Type: text/x-patch
Size: 4802 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220504/0317c50c/attachment.bin>


More information about the llvm-commits mailing list