[all-commits] [llvm/llvm-project] c12722: [PowerPC] Exploit RLDIMI for OR with large immediates

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Tue Apr 21 23:19:12 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c12722cde83212581d14a6fdd6a52ebed04ac4df
      https://github.com/llvm/llvm-project/commit/c12722cde83212581d14a6fdd6a52ebed04ac4df
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2020-04-22 (Wed, 22 Apr 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
    M llvm/test/CodeGen/PowerPC/ori_imm32.ll
    M llvm/test/CodeGen/PowerPC/ori_imm64.ll

  Log Message:
  -----------
  [PowerPC] Exploit RLDIMI for OR with large immediates

This patch exploits rldimi instruction for patterns like
`or %a, 0b000011110000`, which saves number of instructions when the
operand has only one use, compared with `li-ori-sldi-or`.

Reviewed By: nemanjai

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




More information about the All-commits mailing list