[llvm] [AMDGPU] Fix mode register pass for constrained FP operations (PR #90085)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 25 10:15:12 PDT 2024


================
@@ -9,8 +9,7 @@ define double @ignoreStrictfp(double noundef %a, double noundef %b) #0 {
 ; GCN:       ; %bb.0:
 ; GCN-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
 ; GCN-NEXT:    s_setreg_imm32_b32 hwreg(HW_REG_MODE, 2, 2), 1
-; GCN-NEXT:    s_nop 1
-; GCN-NEXT:    s_setreg_imm32_b32 hwreg(HW_REG_MODE, 2, 1), 0
+; GCN-NOT:     s_setreg_imm32_b32 hwreg(HW_REG_MODE, 2, 1), 0
----------------
arsenm wrote:

Don't manually add the -NOT here. The generated -NEXT checks are sufficient and much more reliable 

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


More information about the llvm-commits mailing list