[llvm] Rework i1->i32 zext/anyext translation (PR #114721)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 4 01:59:59 PST 2024


================
@@ -42,8 +42,10 @@ define amdgpu_ps void @add_i32_constant(ptr addrspace(8) inreg %out, ptr addrspa
 ; GFX7-NEXT:    s_or_b64 exec, exec, s[8:9]
 ; GFX7-NEXT:    s_wqm_b64 s[4:5], -1
 ; GFX7-NEXT:    s_and_b64 s[4:5], s[4:5], s[4:5]
-; GFX7-NEXT:    s_andn2_b64 vcc, exec, s[4:5]
-; GFX7-NEXT:    s_cbranch_vccnz .LBB0_6
+; GFX7-NEXT:    s_and_b64 s[4:5], s[4:5], exec
+; GFX7-NEXT:    s_cselect_b32 s4, 1, 0
+; GFX7-NEXT:    s_cmp_lg_u32 s4, 1
+; GFX7-NEXT:    s_cbranch_scc1 .LBB0_6
----------------
jayfoad wrote:

Regression here.

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


More information about the llvm-commits mailing list