[llvm] [AMDGPU] Make rotr illegal (PR #166558)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 5 06:29:28 PST 2025


================
@@ -353,16 +353,17 @@ define hidden void @shuffle5341ud2(ptr addrspace(1) %in0, ptr addrspace(1) %out0
 ; GFX10-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
 ; GFX10-NEXT:    global_load_dword v0, v[0:1], off
 ; GFX10-NEXT:    s_waitcnt vmcnt(0)
-; GFX10-NEXT:    v_alignbit_b32 v0, v0, v0, 16
+; GFX10-NEXT:    v_perm_b32 v0, v0, v0, 0x5040706
----------------
RKSimon wrote:

Do you have a plan for these? It feels like you're going to end up adding fshr peepholes to replace the rotr ones?

https://github.com/llvm/llvm-project/pull/166558


More information about the llvm-commits mailing list