[all-commits] [llvm/llvm-project] 1c0941: [PowerPC] Extend folding RLWINM + RLWINM to post-RA.

Esme via All-commits all-commits at lists.llvm.org
Sat Nov 21 23:38:20 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c0941e1524f499e3fbde48fc3bdd0e70fc8f2e4
      https://github.com/llvm/llvm-project/commit/1c0941e1524f499e3fbde48fc3bdd0e70fc8f2e4
  Author: Esme-Yi <esme.yi at ibm.com>
  Date:   2020-11-22 (Sun, 22 Nov 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
    M llvm/lib/Target/PowerPC/PPCInstrInfo.h
    M llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
    M llvm/lib/Target/PowerPC/PPCPreEmitPeephole.cpp
    A llvm/test/CodeGen/PowerPC/fold-rlwinm-after-ra.mir
    M llvm/test/CodeGen/PowerPC/vsx_builtins.ll

  Log Message:
  -----------
  [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




More information about the All-commits mailing list