[all-commits] [llvm/llvm-project] 8ffe88: [PowerPC] Exploit VSX neg, abs and nabs for f32

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Tue May 12 23:35:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ffe8891cd57694dbed148cfcae8aaede70a0f30
      https://github.com/llvm/llvm-project/commit/8ffe8891cd57694dbed148cfcae8aaede70a0f30
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2020-05-13 (Wed, 13 May 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCInstrVSX.td
    M llvm/test/CodeGen/PowerPC/float-logic-ops.ll
    M llvm/test/CodeGen/PowerPC/fma.ll
    M llvm/test/CodeGen/PowerPC/fmf-propagation.ll
    M llvm/test/CodeGen/PowerPC/fsub-fneg.ll

  Log Message:
  -----------
  [PowerPC] Exploit VSX neg, abs and nabs for f32

xsnegdp, xsabsdp and xsnabsdp can be used to operate on f32 operand.

This patch adds the missing patterns since we prefer VSX instructions
when available.

Reviewed By: steven.zhang

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




More information about the All-commits mailing list