[PowerPC] Extend folding RLWINM + RLWINM to post-RA.
authorEsme-Yi <esme.yi@ibm.com>
Sun, 22 Nov 2020 07:37:24 +0000 (07:37 +0000)
committerEsme-Yi <esme.yi@ibm.com>
Sun, 22 Nov 2020 07:37:24 +0000 (07:37 +0000)
commit1c0941e1524f499e3fbde48fc3bdd0e70fc8f2e4
tree0eab3461c1cfd6f8a33d553e373a2f36e4811aa1
parent68403af007fa1ecd67e0c96d94eb9253b76c759d
[PowerPC] Extend folding RLWINM + RLWINM to post-RA.

Summary: We have the patterns to fold 2 RLWINMs before RA, while some RLWINM will be generated after RA, for example rGc4690b007743. If the RLWINM generated after RA followed by another RLWINM, we expect to perform the optimization too.

Reviewed By: shchenz

Differential Revision: https://reviews.llvm.org/D89855
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.h
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
llvm/lib/Target/PowerPC/PPCPreEmitPeephole.cpp
llvm/test/CodeGen/PowerPC/fold-rlwinm-after-ra.mir [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/vsx_builtins.ll