[PATCH] D82145: [NFC][PowerPC] Legalize SREM/UREM directly on P9.

EsmeYi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 18 23:23:57 PDT 2020


Esme created this revision.
Esme added reviewers: hfinkel, steven.zhang, PowerPC, jsji, spatel, lkail.
Herald added subscribers: llvm-commits, shchenz, kbarton, hiraditya, nemanjai.
Herald added a project: LLVM.

As Bugzilla 35090 <https://bugs.llvm.org/show_bug.cgi?id=35090> reported, the rationale for using custom lowering SREM/UREM should no longer be true. At the IR level,  the div-rem-pairs pass rL312862 <https://reviews.llvm.org/rL312862> performs the transformation where the remainder is computed from the result of the division when both a required. We should now be able to lower these directly on P9 <https://reviews.llvm.org/P9>. And the pass also fixed the problem that divide is in a different block than the remainder.
This is a NFC patch to remove redundant code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82145

Files:
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.h
  llvm/test/CodeGen/PowerPC/ppc64-P9-mod.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82145.271913.patch
Type: text/x-patch
Size: 5147 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200619/69a616fb/attachment.bin>


More information about the llvm-commits mailing list