[PATCH] D102391: [AMDGPU][GlobalISel] Legalize G_ABS

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 13 06:15:34 PDT 2021


foad added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SOPInstructions.td:1368
 
+def : GCNPat <
+  (i32 (abs SReg_32:$src)),
----------------
No need for a separate pattern for this, you can do it as part of the definition of S_ABS_I32. See S_NOT_I32 for an example.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102391



More information about the llvm-commits mailing list