[PATCH] D113448: [AMDGPU] Check for unneeded shift mask in shift PatFrags.
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 9 03:05:33 PST 2021
foad added inline comments.
================
Comment at: llvm/test/CodeGen/AMDGPU/constrained-shift.ll:19
+; GISEL-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
+; GISEL-NEXT: v_and_b32_e32 v1, 15, v1
+; GISEL-NEXT: v_lshlrev_b16_e32 v2, v1, v0
----------------
abinavpp wrote:
> Do we see anything obvious in this change that's not allowing us to eliminate the `and` in global-isel for the divergent cases?
I think a cross-regbank copy is getting in the way of matching the constant value 15. Maybe use getIConstantVRegValWithLookThrough to look through the copy?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113448/new/
https://reviews.llvm.org/D113448
More information about the llvm-commits
mailing list