[llvm] [AMDGPU] Fix SIFixSGPRCopies handling of STRICT_WWM and friends (PR #142122)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri May 30 04:02:42 PDT 2025


================
@@ -0,0 +1,26 @@
+# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
+# RUN: llc -mtriple=amdgcn -mcpu=gfx1200 -run-pass=si-fix-sgpr-copies %s | FileCheck %s
+
+---
+name: main
+tracksRegLiveness: true
+body: |
+  bb.0:
+    ; CHECK-LABEL: name: main
+    ; CHECK: [[DEF:%[0-9]+]]:sreg_32 = IMPLICIT_DEF
+    ; CHECK-NEXT: [[DEF1:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
+    ; CHECK-NEXT: [[V_READFIRSTLANE_B32_:%[0-9]+]]:sreg_32_xm0 = V_READFIRSTLANE_B32 [[DEF1]], implicit $exec
----------------
jayfoad wrote:

Here you can see SIFixSGPRCopies removed STRICT_WWM. I don't think it should ever do this.

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


More information about the llvm-commits mailing list