[llvm-branch-commits] [clang] [KeyInstr][Clang] Assignment atom group (PR #134637)

Jeremy Morse via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed May 21 10:06:42 PDT 2025


================
@@ -0,0 +1,34 @@
+// RUN: %clang_cc1 -gkey-instructions -x c++ %s -debug-info-kind=line-tables-only -emit-llvm -o - \
+// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank
+
+// RUN: %clang_cc1 -gkey-instructions -x c %s -debug-info-kind=line-tables-only -emit-llvm -o - \
+// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank
+
+unsigned long long g;
+void fun() {
+// CHECK: store i64 0, ptr @g{{.*}}, !dbg [[G1R1:!.*]]
+    g = 0;
+
+// Treat the two assignments as two atoms.
----------------
jmorse wrote:

Duplicate coverage with the `g = g = g` in the test file above?

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


More information about the llvm-branch-commits mailing list