[llvm] Allow more dead AND operations to be eliminated (PR #123686)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 21:17:09 PST 2025


================
@@ -668,7 +668,7 @@ define amdgpu_kernel void @v_extract_fabs_no_fold_v2f16(ptr addrspace(1) %in) #0
 ; CI-NEXT:    flat_load_dword v0, v[0:1]
 ; CI-NEXT:    s_waitcnt vmcnt(0)
 ; CI-NEXT:    v_bfe_u32 v1, v0, 16, 15
-; CI-NEXT:    v_and_b32_e32 v0, 0x7fff, v0
+; CI-NEXT:    v_and_b32_e32 v0, 0x7fff7fff, v0
----------------
arsenm wrote:

Technically no worse but now we're emitting a messier constant 

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


More information about the llvm-commits mailing list