[all-commits] [llvm/llvm-project] b969df: [NFC][PowerPC] Move the folding RLWINMs from ppc-m...

Esme via All-commits all-commits at lists.llvm.org
Mon Nov 2 22:30:27 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b969dfe26f41ce0373a9e1542ebd4cfb0e6a2c25
      https://github.com/llvm/llvm-project/commit/b969dfe26f41ce0373a9e1542ebd4cfb0e6a2c25
  Author: Esme-Yi <esme.yi at ibm.com>
  Date:   2020-11-03 (Tue, 03 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

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

Summary: We have the patterns to fold 2 RLWINMs in ppc-mi-peephole, while some RLWINM will be generated after RA, for example D88274. 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.

Reviewed By: shchenz

Differential Revision: https://reviews.llvm.org/D89846




More information about the All-commits mailing list