[all-commits] [llvm/llvm-project] 1d8f13: [PowerPC] add a peephole to remove redundant swap ...

Ting Wang via All-commits all-commits at lists.llvm.org
Thu Feb 2 17:53:38 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d8f13ae4538fe49ecf3f59ddbd4e63b911107da
      https://github.com/llvm/llvm-project/commit/1d8f13ae4538fe49ecf3f59ddbd4e63b911107da
  Author: Ting Wang <Ting.Wang.SH at ibm.com>
  Date:   2023-02-02 (Thu, 02 Feb 2023)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
    M llvm/test/CodeGen/PowerPC/VSX-XForm-Scalars.ll
    M llvm/test/CodeGen/PowerPC/aix-vsx-splatimm.ll
    M llvm/test/CodeGen/PowerPC/canonical-merge-shuffles.ll
    M llvm/test/CodeGen/PowerPC/load-and-splat.ll

  Log Message:
  -----------
  [PowerPC] add a peephole to remove redundant swap instructions after vector splats on P8

Vector store on P8 little endian will have swap instruction added before
the store in PPCISelLowring. If the vector is generated by splat, the
swap instruction can be eliminated.

Reviewed By: shchenz

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




More information about the All-commits mailing list