[all-commits] [llvm/llvm-project] 87c773: [PowerPC] Exploit VSX rounding instrs for rint

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Thu Feb 13 05:05:47 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 87c773082a8d76f1d4b0d74386fcf01205b5f14a
      https://github.com/llvm/llvm-project/commit/87c773082a8d76f1d4b0d74386fcf01205b5f14a
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2020-02-13 (Thu, 13 Feb 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/lib/Target/PowerPC/PPCInstrVSX.td
    M llvm/test/CodeGen/PowerPC/mi-peephole-splat.ll
    M llvm/test/CodeGen/PowerPC/scalar-rounding-ops.ll
    M llvm/test/CodeGen/PowerPC/vector-constrained-fp-intrinsics.ll
    A llvm/test/CodeGen/PowerPC/vector-rounding-ops.ll

  Log Message:
  -----------
  [PowerPC] Exploit VSX rounding instrs for rint

Exploit native VSX rounding instruction, x(v|s)r(d|s)pic, which does
rounding using current rounding mode.

According to C standard library, rint may raise INEXACT exception while
nearbyint won't.

Reviewed By: lkail

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




More information about the All-commits mailing list