[all-commits] [llvm/llvm-project] e021de: [PowerPC] Exploit paddi instruction on Power 10 fo...

stefanp-ibm via All-commits all-commits at lists.llvm.org
Thu Mar 11 06:38:27 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e021de0aab221beaa03f73821ab41850e9c1bdb8
      https://github.com/llvm/llvm-project/commit/e021de0aab221beaa03f73821ab41850e9c1bdb8
  Author: Stefan Pintilie <stefanp at ca.ibm.com>
  Date:   2021-03-11 (Thu, 11 Mar 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
    M llvm/test/CodeGen/PowerPC/fast-isel-pcrel.ll
    M llvm/test/CodeGen/PowerPC/p10-constants.ll

  Log Message:
  -----------
  [PowerPC] Exploit paddi instruction on Power 10 for constant materialization

Starting with Power 10 the instruction paddi is available to use.
The instruction allows for immediates that are 34 bits.

This patch adds exploitation of the paddi instruction to allow us
to materialize constants.

Reviewed By: lei, amyk

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




More information about the All-commits mailing list