[all-commits] [llvm/llvm-project] e29bb0: [PowerPC] Exploit xxsplti32dx (constant materializ...

Conanap via All-commits all-commits at lists.llvm.org
Wed Mar 24 13:00:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e29bb074c62ce46343c2d6c77a463e5c22939f03
      https://github.com/llvm/llvm-project/commit/e29bb074c62ce46343c2d6c77a463e5c22939f03
  Author: Albion Fung <albion.fung at ibm.com>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/lib/Target/PowerPC/PPCISelLowering.h
    M llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
    M llvm/lib/Target/PowerPC/PPCInstrInfo.td
    M llvm/lib/Target/PowerPC/PPCInstrPrefix.td
    M llvm/test/CodeGen/PowerPC/constant-pool.ll
    M llvm/test/CodeGen/PowerPC/p10-splatImm-CPload-pcrel.ll
    M llvm/test/CodeGen/PowerPC/pcrel-call-linkage-leaf.ll
    M llvm/test/CodeGen/PowerPC/pcrel-linkeropt.ll
    M llvm/test/CodeGen/PowerPC/pcrel.ll

  Log Message:
  -----------
  [PowerPC] Exploit xxsplti32dx (constant materialization) for scalars

This patch exploits the xxsplti32dx instruction available on Power10
in place of constant pool loads where xxspltidp would not be able to,
usually because the immediate cannot fit into 32 bits.

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




More information about the All-commits mailing list