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

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 16 11:14:01 PST 2021


rampitec added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIInstructions.td:2120
+def : GCNPat <
+  (i32 (UniformBinFrag<xor> i32:$src0, (i32 -1))),
+  (S_NOT_B32 $src0)
----------------
foad wrote:
> There are already patterns on the definitions of S_NOT_* in SOPInstructions.td. Can you update those, instead of adding new standalone patterns?
+1.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115884



More information about the llvm-commits mailing list