[all-commits] [llvm/llvm-project] 29eb3d: [PowerPC] Materialize i64 constants by enumerated ...

Esme via All-commits all-commits at lists.llvm.org
Sun Dec 20 21:22:12 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29eb3dcfe628e9fc89047ceb1502e22a0831cb87
      https://github.com/llvm/llvm-project/commit/29eb3dcfe628e9fc89047ceb1502e22a0831cb87
  Author: Esme-Yi <esme.yi at ibm.com>
  Date:   2020-12-21 (Mon, 21 Dec 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
    M llvm/test/CodeGen/PowerPC/aix-cc-abi.ll
    M llvm/test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll
    M llvm/test/CodeGen/PowerPC/bperm.ll
    M llvm/test/CodeGen/PowerPC/combine_ext_trunc.ll
    M llvm/test/CodeGen/PowerPC/constants-i64.ll
    M llvm/test/CodeGen/PowerPC/f128-fma.ll
    M llvm/test/CodeGen/PowerPC/f128-passByValue.ll
    M llvm/test/CodeGen/PowerPC/fast-isel-pcrel.ll
    M llvm/test/CodeGen/PowerPC/fp-strict-f128.ll
    M llvm/test/CodeGen/PowerPC/fp-to-int-to-fp.ll
    M llvm/test/CodeGen/PowerPC/fp128-bitcast-after-operation.ll
    M llvm/test/CodeGen/PowerPC/funnel-shift.ll
    M llvm/test/CodeGen/PowerPC/memCmpUsedInZeroEqualityComparison.ll
    M llvm/test/CodeGen/PowerPC/negctr.ll
    M llvm/test/CodeGen/PowerPC/ori_imm32.ll
    M llvm/test/CodeGen/PowerPC/ori_imm64.ll
    M llvm/test/CodeGen/PowerPC/pr43976.ll
    M llvm/test/CodeGen/PowerPC/pr45448.ll
    M llvm/test/CodeGen/PowerPC/rematerializable-instruction-machine-licm.ll
    M llvm/test/CodeGen/PowerPC/sms-grp-order.ll
    M llvm/test/CodeGen/PowerPC/srem-vector-lkk.ll
    M llvm/test/CodeGen/PowerPC/tailcall-speculatable-callee.ll
    M llvm/test/CodeGen/PowerPC/unaligned-addressing-mode.ll
    M llvm/test/CodeGen/PowerPC/urem-vector-lkk.ll

  Log Message:
  -----------
  [PowerPC] Materialize i64 constants by enumerated patterns.

Summary: Some constants can be handled with less instructions than our current results. And it seems our original approach is not very easy to extend. Therefore this patch proposes to materialize all 64-bit constants by enumerated patterns.
I traversed almost all constants to verified the functionality of these pattens. A traversed comparison of the number of instructions used by the original method and the new method has also been completed, where no degradation was caused by this patch. This patch also passed Bootstrap test and SPEC test.
Improvements of this patch are shown in llvm/test/CodeGen/PowerPC/constants-i64.ll

Reviewed By: steven.zhang, stefanp

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




More information about the All-commits mailing list