[PATCH] D129450: [RISCV] Move the custom isel for (add X, imm) into SelectAddrRegImm.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 10 11:12:02 PDT 2022


craig.topper created this revision.
craig.topper added reviewers: reames, asb, luismarques, frasercrmck.
Herald added subscribers: sunshaoce, VincentWu, luke957, StephenFan, vkmr, evandro, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

This custom isel was used to split the lo12 bits of the imm so that
they could be folded into load/store addresses via a post-isel
peephole.

      

This patch instead splits the immediate during isel and folds the
lo12 removing the need for the post-isel peephole to do anything.

      

After this we'll be able to remove the post-isel peephole.


https://reviews.llvm.org/D129450

Files:
  llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129450.443520.patch
Type: text/x-patch
Size: 4639 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220710/6d7c22d7/attachment.bin>


More information about the llvm-commits mailing list