[PATCH] D142585: AMDGPU: Try to push fneg as integer into select

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 25 14:58:35 PST 2023


arsenm created this revision.
arsenm added reviewers: AMDGPU, rampitec, foad, Pierre-vh, sebastian-ne.
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 initially attempted to select the source modifier from xor of
a sign mask. This proved to be more difficult since
foldBinOpIntoSelect does not consider free fneg of integers
and undoes the combine.


https://reviews.llvm.org/D142585

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142585.492263.patch
Type: text/x-patch
Size: 8712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230125/5edfba18/attachment.bin>


More information about the llvm-commits mailing list