[PATCH] D115884: [AMDGPU] Expand not pattern according to the XOR node divergence

Alexander via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 16 09:03:08 PST 2021


alex-t created this revision.
alex-t added a reviewer: rampitec.
Herald added subscribers: foad, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl, arsenm.
alex-t requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

The "not" is defined as XOR $src -1.

  We need to transform this pattern to either S_NOT_B32 or V_NOT_B32_e32
  dependent on the "xor" node divergence.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115884

Files:
  llvm/lib/Target/AMDGPU/SIInstructions.td
  llvm/test/CodeGen/AMDGPU/divergence-driven-not-isel.ll
  llvm/test/CodeGen/AMDGPU/fused-bitlogic.ll
  llvm/test/CodeGen/AMDGPU/llvm.round.f64.ll
  llvm/test/CodeGen/AMDGPU/urem64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115884.394901.patch
Type: text/x-patch
Size: 4379 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211216/0418da6b/attachment.bin>


More information about the llvm-commits mailing list