[PATCH] D142756: AMDGPU: Try to select fneg modifier from xor

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 27 09:35:13 PST 2023


arsenm created this revision.
arsenm added reviewers: AMDGPU, foad, Pierre-vh, sebastian-ne, rampitec, rovka.
Herald added subscribers: bzcheeseman, kosarev, StephenFan, kerbowa, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

I'm somewhat unhappy with needing to do this. Ideally we could
unconditionally turn all of these into fnegs, but that's going
to confuse other integer patterns that want to look for xor. We
either have to complicate those, or special case this.


https://reviews.llvm.org/D142756

Files:
  llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
  llvm/test/CodeGen/AMDGPU/fneg-modifier-casting.ll
  llvm/test/CodeGen/AMDGPU/saddsat.ll
  llvm/test/CodeGen/AMDGPU/ssubsat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142756.492811.patch
Type: text/x-patch
Size: 44131 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230127/01d56641/attachment.bin>


More information about the llvm-commits mailing list