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

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 22 10:13:28 PST 2023


RKSimon created this revision.
RKSimon added reviewers: nemanjai, Esme, steven.zhang.
Herald added subscribers: shchenz, kbarton, hiraditya.
Herald added a project: All.
RKSimon requested review of this revision.
Herald added a project: LLVM.

A move towards using the generic ISD::ABDU nodes on more backends

PowerPC has a select(icmp_ugt(x,y),sub(x,y),sub(y,x)) -> abdu(x,y) that I intend to move to DAGCombiner in a future patch.

I'm not sure what to do about the remaining PPCISD::VABSD(X,Y,1) v4i32 case, so have left it for now.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142313

Files:
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCInstrVSX.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142313.491183.patch
Type: text/x-patch
Size: 5594 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230122/da0557dc/attachment.bin>


More information about the llvm-commits mailing list