[llvm] [PeepholeOptimizer] Recognize new move-immediate instructions (PR #72128)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 14 05:55:36 PST 2023
================
@@ -715,12 +715,33 @@ define amdgpu_ps i32 @s_mul_fma_32_f32(float inreg %x, float inreg %y) {
; GFX9-NEXT: v_readfirstlane_b32 s0, v0
; GFX9-NEXT: ; return to shader part epilog
;
-; GFX1011-LABEL: s_mul_fma_32_f32:
-; GFX1011: ; %bb.0:
-; GFX1011-NEXT: v_mov_b32_e32 v0, s1
-; GFX1011-NEXT: v_fmac_f32_e64 v0, 0x42000000, s0
-; GFX1011-NEXT: v_readfirstlane_b32 s0, v0
-; GFX1011-NEXT: ; return to shader part epilog
+; GFX10-SDAG-LABEL: s_mul_fma_32_f32:
+; GFX10-SDAG: ; %bb.0:
+; GFX10-SDAG-NEXT: v_mov_b32_e32 v0, s1
+; GFX10-SDAG-NEXT: v_fmac_f32_e64 v0, 0x42000000, s0
----------------
jayfoad wrote:
Great spot! #72258
https://github.com/llvm/llvm-project/pull/72128
More information about the llvm-commits
mailing list