[llvm-branch-commits] [llvm] [DirectX] Add DXIL validation of `llvm.loop` metadata (PR #164292)
Finn Plummer via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Oct 28 10:37:44 PDT 2025
================
@@ -24,9 +24,9 @@ _Z4mainDv3_j.exit: ; preds = %for.body.i, %entry
; These next check lines check that only the range metadata remains
; No more metadata should be necessary, the rest (the current 0 and 1)
; should be removed.
-; CHECK-NOT: !{!"llvm.loop.mustprogress"}
-; CHECK: [[RANGEMD]] = !{i32 1, i32 5}
-; CHECK-NOT: !{!"llvm.loop.mustprogress"}
-!0 = distinct !{!0, !1}
+; CHECK-DAG: [[RANGEMD]] = !{i32 1, i32 5}
+; CHECK-DAG: [[LOOPMD]] = distinct !{[[LOOPMD]]}
+; CHECK-NOT: {!"llvm.loop.mustprogress"}
+!0 = distinct !{!0, !1, !2}
----------------
inbelic wrote:
Whoops, I think an artifact of playing around the test case. Good catch, it shouldn't be there.
https://github.com/llvm/llvm-project/pull/164292
More information about the llvm-branch-commits
mailing list