[all-commits] [llvm/llvm-project] 288f76: [PowerPC] Materialize 34 bit constants with pli on...

stefanp-ibm via All-commits all-commits at lists.llvm.org
Tue Feb 2 07:50:16 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 288f762b6ff2c0cedfda88e8b9af11c2ec412cd3
      https://github.com/llvm/llvm-project/commit/288f762b6ff2c0cedfda88e8b9af11c2ec412cd3
  Author: Stefan Pintilie <stefanp at ca.ibm.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
    M llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
    M llvm/lib/Target/PowerPC/PPCInstrInfo.td
    M llvm/lib/Target/PowerPC/PPCInstrPrefix.td
    A llvm/test/CodeGen/PowerPC/p10-constants.ll
    M llvm/test/CodeGen/PowerPC/paired-vector-intrinsics.ll

  Log Message:
  -----------
  [PowerPC] Materialize 34 bit constants with pli on Power 10.

NOTE: This patch was originally written by Anil Mahmud. His code has been
rebased but otherwise left mostly unchanged.

A new instructon on Power 10 allows for the materialization of 34 bit
immediate values. This patch allows the compiler to take advantage of
the new instruction in this situation.

Reviewed By: amyk

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




More information about the All-commits mailing list