[PATCH] D102391: [AMDGPU][GlobalISel] Legalize G_ABS
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 18 06:59:11 PDT 2021
foad added inline comments.
================
Comment at: llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.abs.ll:42-44
+; GFX-NEXT: s_cselect_b32 s4, 1, 0
+; GFX-NEXT: s_and_b32 s4, s4, 1
+; GFX-NEXT: s_cmp_lg_u32 s4, 0
----------------
Not really related to your patch, but this sequence needs cleaning up. The s_and is redundant, and the s_cmp just computes the same scc value that s_add computed in the first place.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102391/new/
https://reviews.llvm.org/D102391
More information about the llvm-commits
mailing list