[PowerPC] Extend folding RLWINM + RLWINM to post-RA.
authorEsme-Yi <esme.yi@ibm.com>
Tue, 3 Nov 2020 07:44:11 +0000 (07:44 +0000)
committerEsme-Yi <esme.yi@ibm.com>
Tue, 3 Nov 2020 07:44:11 +0000 (07:44 +0000)
commit119ab2181e6ed823849c93d55af8e989c28c9f3c
tree049a1bd957e770fb6d6895ec78c8281e52f9c4ed
parent529ba612b0774a86f581b68655ad3422075092c6
[PowerPC] Extend folding RLWINM + RLWINM to post-RA.

Summary: This patch depends on D89846. We have the patterns to fold 2 RLWINMs in ppc-mi-peephole, 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 after RA, too.

Reviewed By: shchenz, steven.zhang

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/sms-phi-5.ll
llvm/test/CodeGen/PowerPC/vsx_builtins.ll