[PATCH] D142313: [PowerPC] Replace PPCISD::VABSD cases with generic ISD::ABDU(X,Y) node

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 27 09:29:08 PST 2023


RKSimon updated this revision to Diff 492800.
RKSimon retitled this revision from "[PowerPC] Replace PPCISD::VABSD(X,Y,0) cases with generic ISD::ABDU(X,Y) node" to "[PowerPC] Replace PPCISD::VABSD cases with generic ISD::ABDU(X,Y) node".
RKSimon edited the summary of this revision.
RKSimon added a comment.

Adds support for ISD::ABDS for v4i32 types using the existing signbit flip trick and remove the PPCISD::VABSD node type entirely

I've tentatively removed the "(abs (sub a, b) --> (vabsd a b 1))" fold as afaict its not correct: https://alive2.llvm.org/ce/z/jc2hLU


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142313/new/

https://reviews.llvm.org/D142313

Files:
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.h
  llvm/lib/Target/PowerPC/PPCInstrVSX.td
  llvm/test/CodeGen/PowerPC/ppc64-P9-vabsd.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142313.492800.patch
Type: text/x-patch
Size: 10131 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230127/3cadd0c7/attachment.bin>


More information about the llvm-commits mailing list