[PATCH] D89846: [NFC][PowerPC] Move the folding RLWINMs from ppc-mi-peephole to PPCInstrInfo.

EsmeYi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 20 21:44:29 PDT 2020


Esme created this revision.
Esme added reviewers: steven.zhang, shchenz, qiucf, jsji, nemanjai.
Herald added subscribers: llvm-commits, kbarton, hiraditya.
Herald added a project: LLVM.
Esme requested review of this revision.

We have the patterns to fold 2 RLWINMs in  ppc-mi-peephole, while some RLWINM will be generated after RA, for example https://reviews.llvm.org/rGc4690b007743d2f564bc1156fdbdbcaad2adddcc. If the RLWINM generated after RA followed by another RLWINM,  we expect to perform the optimization after RA, too.
This is a NFC patch to move the folding patterns to PPCInstrInfo, and the follow-up works will be calling it in pre-emit-peephole and  expand the patterns to handle more cases.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89846

Files:
  llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
  llvm/lib/Target/PowerPC/PPCInstrInfo.h
  llvm/lib/Target/PowerPC/PPCMIPeephole.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89846.299551.patch
Type: text/x-patch
Size: 13116 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201021/d74769bf/attachment.bin>


More information about the llvm-commits mailing list