[PATCH] D102391: [AMDGPU][GlobalISel] Legalize G_ABS
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 13 08:40:38 PDT 2021
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/VOP3Instructions.td:758-760
+def : GCNPat <
+ (i32 (abs i32:$src)),
+ (V_MAX_I32_e32 (V_SUB_I32_e64 (i32 0), VGPR_32:$src), VGPR_32:$src)
----------------
Should be expanding the vector case in regbankselect
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