[Assignment Tracking] Follow up for D147129 - fix broken clang tests
authorOCHyams <orlando.hyams@sony.com>
Wed, 29 Mar 2023 12:50:46 +0000 (13:50 +0100)
committerOCHyams <orlando.hyams@sony.com>
Wed, 29 Mar 2023 12:54:10 +0000 (13:54 +0100)
D147129 causes the assignment tracking pass to skip optnone functions, which
ends up overriding the "-fexperimental-assignment-tracking=forced" option at
O0. Add -disable-O0-optnone to the tests so that optnone doesn't interfere.

Buildbot example: https://lab.llvm.org/buildbot/#/builders/216/builds/18986

clang/test/CodeGen/assignment-tracking/assignment-tracking.cpp
clang/test/CodeGen/assignment-tracking/flag.cpp
clang/test/CodeGen/assignment-tracking/memcpy-fragment.cpp
clang/test/CodeGen/assignment-tracking/nested-scope.cpp

index 2e30457..b96ad7c 100644 (file)
@@ -1,5 +1,6 @@
 // RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone -O0 \
 // RUN:     -emit-llvm  -fexperimental-assignment-tracking=forced %s -o -        \
+// RUN:     -disable-O0-optnone                                                  \
 // RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
 
 // Based on llvm/test/DebugInfo/Generic/track-assignments.ll - check that using
index 9da6f01..aa1f054 100644 (file)
 //// Disabled at O0 unless forced.
 // RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone   \
 // RUN:     -emit-llvm %s -o - -fexperimental-assignment-tracking=enabled      \
-// RUN:     -O0                                                                \
+// RUN:     -O0 -disable-O0-optnone                                           \
 // RUN: | FileCheck %s --check-prefixes=DISABLE
 // RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone   \
 // RUN:     -emit-llvm %s -o - -fexperimental-assignment-tracking=forced       \
-// RUN:     -O0                                                                \
+// RUN:     -O0 -disable-O0-optnone                                            \
 // RUN: | FileCheck %s --check-prefixes=ENABLE
 
 //// Disabled for LTO and thinLTO unless forced.
index 14e4d84..126bc8f 100644 (file)
@@ -1,5 +1,6 @@
 // RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone -O0 \
 // RUN:     -emit-llvm  -fexperimental-assignment-tracking=forced %s -o -        \
+// RUN:     -disable-O0-optnone                                                  \
 // RUN: | FileCheck %s
 
 // Check that the (debug) codegen looks right with assignment tracking
index 431bf04..d94e42a 100644 (file)
@@ -1,5 +1,6 @@
 // RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone -O0 \
 // RUN:     -emit-llvm  -fexperimental-assignment-tracking=forced %s -o -        \
+// RUN:     -disable-O0-optnone                                                  \
 // RUN: | FileCheck %s
 
 // Check that dbg.assign intrinsics get a !dbg with with the same scope as