Index: llvm/test/CodeGen/AArch64/GlobalISel/debug-insts.ll =================================================================== --- llvm/test/CodeGen/AArch64/GlobalISel/debug-insts.ll +++ llvm/test/CodeGen/AArch64/GlobalISel/debug-insts.ll @@ -1,7 +1,7 @@ ; REQUIRES: asserts -; RUN: llc -global-isel -mtriple=aarch64 %s -stop-after=irtranslator -o - | FileCheck %s -; RUN: llc -mtriple=aarch64 -global-isel --global-isel-abort=0 %s -o /dev/null -; RUN: llc -mtriple=aarch64 -global-isel --global-isel-abort=0 %s -o /dev/null -debug +; RUN: llc -global-isel -mtriple=aarch64 %s -stop-after=irtranslator -o - -experimental-debug-variable-locations=false | FileCheck %s +; RUN: llc -mtriple=aarch64 -global-isel --global-isel-abort=0 %s -o /dev/null -experimental-debug-variable-locations=false +; RUN: llc -mtriple=aarch64 -global-isel --global-isel-abort=0 %s -o /dev/null -debug -experimental-debug-variable-locations=false ; CHECK-LABEL: name: debug_declare ; CHECK: stack: Index: llvm/test/CodeGen/AArch64/fast-isel-dbg.ll =================================================================== --- llvm/test/CodeGen/AArch64/fast-isel-dbg.ll +++ llvm/test/CodeGen/AArch64/fast-isel-dbg.ll @@ -1,4 +1,4 @@ -; RUN: llc -o - %s -fast-isel -stop-before=finalize-isel | FileCheck %s +; RUN: llc -o - %s -fast-isel -stop-before=finalize-isel -experimental-debug-variable-locations=false | FileCheck %s ; Make sure fast-isel produces DBG_VALUE instructions even if no debug printer ; is scheduled because of -stop-before. target triple="aarch64--" Index: llvm/test/CodeGen/AArch64/live-debugvalues-sve.mir =================================================================== --- llvm/test/CodeGen/AArch64/live-debugvalues-sve.mir +++ llvm/test/CodeGen/AArch64/live-debugvalues-sve.mir @@ -1,4 +1,4 @@ -# RUN: llc -start-before=prologepilog -stop-after=livedebugvalues -mattr=+sve -o - %s | FileCheck %s +# RUN: llc -start-before=prologepilog -stop-after=livedebugvalues -mattr=+sve -o - %s -experimental-debug-variable-locations=false | FileCheck %s # # FIXME: re-enable this run line when InstrRef LiveDebugValues is able to # rely on the target spill/restore inst recognisers. Index: llvm/test/CodeGen/AArch64/wrong_debug_loc_after_regalloc.ll =================================================================== --- llvm/test/CodeGen/AArch64/wrong_debug_loc_after_regalloc.ll +++ llvm/test/CodeGen/AArch64/wrong_debug_loc_after_regalloc.ll @@ -1,4 +1,4 @@ -; RUN: llc -O3 -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -print-after virtregrewriter < %s >%t 2>&1 && FileCheck <%t %s +; RUN: llc -O3 -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -print-after virtregrewriter < %s >%t 2>&1 -experimental-debug-variable-locations=false && FileCheck <%t %s ; This test checks that DBG_VALUE instruction placed correctly. ; Specifically: if Register Allocator inserts additional instructions Index: llvm/test/CodeGen/AMDGPU/debug-value.ll =================================================================== --- llvm/test/CodeGen/AMDGPU/debug-value.ll +++ llvm/test/CodeGen/AMDGPU/debug-value.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -verify-machineinstrs < %s -experimental-debug-variable-locations=false | FileCheck %s %struct.wombat = type { [4 x i32], [4 x i32], [4 x i32] } Index: llvm/test/CodeGen/AMDGPU/debug-value2.ll =================================================================== --- llvm/test/CodeGen/AMDGPU/debug-value2.ll +++ llvm/test/CodeGen/AMDGPU/debug-value2.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -verify-machineinstrs < %s | FileCheck %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -verify-machineinstrs < %s -experimental-debug-variable-locations=false | FileCheck %s %struct.ShapeData = type { <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, i32, i32, i64, <4 x float>, i32, i8, i8, i16, i32, i32 } Index: llvm/test/CodeGen/AMDGPU/post-ra-soft-clause-dbg-info.ll =================================================================== --- llvm/test/CodeGen/AMDGPU/post-ra-soft-clause-dbg-info.ll +++ llvm/test/CodeGen/AMDGPU/post-ra-soft-clause-dbg-info.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -march=amdgcn -mcpu=gfx900 -mattr=+xnack -amdgpu-max-memory-clause=0 -verify-machineinstrs < %s | FileCheck -enable-var-scope -check-prefix=GCN %s +; RUN: llc -march=amdgcn -mcpu=gfx900 -mattr=+xnack -amdgpu-max-memory-clause=0 -verify-machineinstrs < %s -experimental-debug-variable-locations=false | FileCheck -enable-var-scope -check-prefix=GCN %s ; Test the behavior of the post-RA soft clause bundler in the presence ; of debug info. The debug info should not interfere with the Index: llvm/test/CodeGen/AMDGPU/ptr-arg-dbg-value.ll =================================================================== --- llvm/test/CodeGen/AMDGPU/ptr-arg-dbg-value.ll +++ llvm/test/CodeGen/AMDGPU/ptr-arg-dbg-value.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 < %s | FileCheck %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 < %s -experimental-debug-variable-locations=false | FileCheck %s %struct.A = type { [100 x i32] } Index: llvm/test/CodeGen/ARM/2010-08-04-StackVariable.ll =================================================================== --- llvm/test/CodeGen/ARM/2010-08-04-StackVariable.ll +++ llvm/test/CodeGen/ARM/2010-08-04-StackVariable.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=arm-apple-darwin -O0 -o - %s | FileCheck %s +; RUN: llc -mtriple=arm-apple-darwin -O0 -o - %s -experimental-debug-variable-locations=false | FileCheck %s ; Use DW_OP_breg in variable's location expression if the variable is in a stack slot. ; CHECK: @ DW_OP_breg Index: llvm/test/CodeGen/ARM/dbg-range-extension.mir =================================================================== --- llvm/test/CodeGen/ARM/dbg-range-extension.mir +++ llvm/test/CodeGen/ARM/dbg-range-extension.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=arm-eabi -run-pass=livedebugvalues %s -o - | FileCheck %s +# RUN: llc -mtriple=arm-eabi -run-pass=livedebugvalues %s -o - -experimental-debug-variable-locations=false | FileCheck %s # # Check that the debug information for variables are propagated into the correct blocks. # Index: llvm/test/CodeGen/ARM/debug-info-branch-folding.ll =================================================================== --- llvm/test/CodeGen/ARM/debug-info-branch-folding.ll +++ llvm/test/CodeGen/ARM/debug-info-branch-folding.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s - | FileCheck %s +; RUN: llc < %s - -experimental-debug-variable-locations=false | FileCheck %s target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:64-v128:32:128-a0:0:32-n32" target triple = "thumbv7-apple-macosx10.6.7" Index: llvm/test/CodeGen/ARM/debug-info-s16-reg.ll =================================================================== --- llvm/test/CodeGen/ARM/debug-info-s16-reg.ll +++ llvm/test/CodeGen/ARM/debug-info-s16-reg.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s - | FileCheck %s +; RUN: llc < %s - -experimental-debug-variable-locations=false | FileCheck %s ; Radar 9309221 ; Test dwarf reg no for s16 ;CHECK: super-register DW_OP_regx Index: llvm/test/CodeGen/ARM/debug-info-sreg2.ll =================================================================== --- llvm/test/CodeGen/ARM/debug-info-sreg2.ll +++ llvm/test/CodeGen/ARM/debug-info-sreg2.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s - -filetype=obj | llvm-dwarfdump -debug-loc - | FileCheck %s +; RUN: llc < %s - -filetype=obj -experimental-debug-variable-locations=false | llvm-dwarfdump -debug-loc - | FileCheck %s ; Radar 9376013 target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:64-v128:32:128-a0:0:32-n32" target triple = "thumbv7-apple-macosx10.6.7" Index: llvm/test/CodeGen/ARM/debuginfo-split-carryexpr.ll =================================================================== --- llvm/test/CodeGen/ARM/debuginfo-split-carryexpr.ll +++ llvm/test/CodeGen/ARM/debuginfo-split-carryexpr.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -mtriple=armv7-linux-gnueabihf -stop-before=finalize-isel | FileCheck %s +; RUN: llc < %s -mtriple=armv7-linux-gnueabihf -stop-before=finalize-isel -experimental-debug-variable-locations=false | FileCheck %s ; When splitting-up integers during CodeGen, if the debug info contains ; an expression with carry operators (i.e. arithmetic and shift ops), the Index: llvm/test/CodeGen/ARM/fragmented-args-multiple-regs.ll =================================================================== --- llvm/test/CodeGen/ARM/fragmented-args-multiple-regs.ll +++ llvm/test/CodeGen/ARM/fragmented-args-multiple-regs.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -mtriple=armv7-linux-gnueabihf -O1 -stop-after=finalize-isel | FileCheck %s +; RUN: llc < %s -mtriple=armv7-linux-gnueabihf -O1 -stop-after=finalize-isel -experimental-debug-variable-locations=false | FileCheck %s define dso_local i32 @h(i64 %j) local_unnamed_addr !dbg !8 { entry: Index: llvm/test/CodeGen/MIR/X86/diexpr-win32.mir =================================================================== --- llvm/test/CodeGen/MIR/X86/diexpr-win32.mir +++ llvm/test/CodeGen/MIR/X86/diexpr-win32.mir @@ -1,4 +1,4 @@ -# RUN: llc -start-after=prologepilog -filetype=obj -O0 %s -o - | llvm-readobj --codeview - | FileCheck %s +# RUN: llc -start-after=prologepilog -filetype=obj -O0 %s -o - -experimental-debug-variable-locations=false | llvm-readobj --codeview - | FileCheck %s # Offsets are now CFA, or VFRAME, relative. Both the NRVO sret pointer and the # string* parameter are on the stack, NRVO at offset 4 (after RA), and Str at Index: llvm/test/CodeGen/PowerPC/debuginfo-split-int.ll =================================================================== --- llvm/test/CodeGen/PowerPC/debuginfo-split-int.ll +++ llvm/test/CodeGen/PowerPC/debuginfo-split-int.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -stop-before=finalize-isel -o - | FileCheck %s +; RUN: llc < %s -stop-before=finalize-isel -o - -experimental-debug-variable-locations=false | FileCheck %s source_filename = "foo.c" target datalayout = "E-m:e-p:32:32-i64:64-n32" Index: llvm/test/CodeGen/PowerPC/pr38899-split-register-at-spill.mir =================================================================== --- llvm/test/CodeGen/PowerPC/pr38899-split-register-at-spill.mir +++ llvm/test/CodeGen/PowerPC/pr38899-split-register-at-spill.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=powerpc64le-unknown-unknown -start-before=greedy -stop-after=virtregrewriter -o - %s | FileCheck %s +# RUN: llc -mtriple=powerpc64le-unknown-unknown -start-before=greedy -stop-after=virtregrewriter -o - %s -experimental-debug-variable-locations=false | FileCheck %s --- | ; Function Attrs: nounwind Index: llvm/test/CodeGen/WebAssembly/cfg-stackify-dbg-skip.ll =================================================================== --- llvm/test/CodeGen/WebAssembly/cfg-stackify-dbg-skip.ll +++ llvm/test/CodeGen/WebAssembly/cfg-stackify-dbg-skip.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -stop-after wasm-cfg-stackify -o - | FileCheck %s +; RUN: llc %s -stop-after wasm-cfg-stackify -o - -experimental-debug-variable-locations=false | FileCheck %s ; The test ensures "block" instruction is not inserted in the middle of a group ; of instructions that form a stackified expression when DBG_VALUE is present Index: llvm/test/CodeGen/WebAssembly/dbgvalue.ll =================================================================== --- llvm/test/CodeGen/WebAssembly/dbgvalue.ll +++ llvm/test/CodeGen/WebAssembly/dbgvalue.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -O0 -verify-machineinstrs | FileCheck %s +; RUN: llc < %s -O0 -verify-machineinstrs -experimental-debug-variable-locations=false | FileCheck %s ; CHECK: %bb.0 ; CHECK: #DEBUG_VALUE: usage:self <- !target-index(0,0) Index: llvm/test/CodeGen/WebAssembly/stackified-debug.ll =================================================================== --- llvm/test/CodeGen/WebAssembly/stackified-debug.ll +++ llvm/test/CodeGen/WebAssembly/stackified-debug.ll @@ -1,5 +1,5 @@ -; RUN: llc -verify-machineinstrs < %s | FileCheck %s -; RUN: llc -filetype=obj %s -o - | llvm-dwarfdump - | FileCheck %s --check-prefix DWARF +; RUN: llc -verify-machineinstrs < %s -experimental-debug-variable-locations=false | FileCheck %s +; RUN: llc -filetype=obj %s -o - -experimental-debug-variable-locations=false | llvm-dwarfdump - | FileCheck %s --check-prefix DWARF ; Input C code: Index: llvm/test/CodeGen/X86/2010-05-26-DotDebugLoc.ll =================================================================== --- llvm/test/CodeGen/X86/2010-05-26-DotDebugLoc.ll +++ llvm/test/CodeGen/X86/2010-05-26-DotDebugLoc.ll @@ -1,5 +1,5 @@ -; RUN: llc -O2 < %s | FileCheck %s -; RUN: llc -O2 -regalloc=basic < %s | FileCheck %s +; RUN: llc -O2 < %s -experimental-debug-variable-locations=false | FileCheck %s +; RUN: llc -O2 -regalloc=basic < %s -experimental-debug-variable-locations=false | FileCheck %s source_filename = "test/CodeGen/X86/2010-05-26-DotDebugLoc.ll" target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" target triple = "x86_64-apple-darwin10" Index: llvm/test/CodeGen/X86/dbg-value-superreg-copy.mir =================================================================== --- llvm/test/CodeGen/X86/dbg-value-superreg-copy.mir +++ llvm/test/CodeGen/X86/dbg-value-superreg-copy.mir @@ -1,4 +1,4 @@ -# RUN: llc -O1 -start-after simple-register-coalescing -o - %s | FileCheck %s +# RUN: llc -O1 -start-after simple-register-coalescing -o - %s -experimental-debug-variable-locations=false | FileCheck %s --- | target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: llvm/test/CodeGen/X86/debug-loclists.ll =================================================================== --- llvm/test/CodeGen/X86/debug-loclists.ll +++ llvm/test/CodeGen/X86/debug-loclists.ll @@ -1,16 +1,16 @@ -; RUN: llc -mtriple=x86_64-pc-linux -filetype=obj -function-sections -o %t < %s +; RUN: llc -mtriple=x86_64-pc-linux -filetype=obj -function-sections -o %t -experimental-debug-variable-locations=false < %s ; RUN: llvm-dwarfdump -v -debug-info -debug-loclists %t | \ ; RUN: FileCheck %s --check-prefixes=CHECK,DWARF32 -; RUN: llc -dwarf64 -mtriple=x86_64-pc-linux -filetype=obj -function-sections -o %t < %s +; RUN: llc -dwarf64 -mtriple=x86_64-pc-linux -filetype=obj -function-sections -o %t -experimental-debug-variable-locations=false < %s ; RUN: llvm-dwarfdump -v -debug-info -debug-loclists %t | \ ; RUN: FileCheck %s --check-prefixes=CHECK,DWARF64 -; RUN: llc -dwarf-version=5 -split-dwarf-file=foo.dwo -mtriple=x86_64-pc-linux -filetype=obj -function-sections -o %t < %s +; RUN: llc -dwarf-version=5 -split-dwarf-file=foo.dwo -mtriple=x86_64-pc-linux -filetype=obj -function-sections -o %t -experimental-debug-variable-locations=false < %s ; RUN: llvm-dwarfdump -v -debug-info -debug-loclists %t | \ ; RUN: FileCheck %s --check-prefixes=DWO,DWO32 -; RUN: llc -dwarf64 -dwarf-version=5 -split-dwarf-file=foo.dwo -mtriple=x86_64-pc-linux -filetype=obj -function-sections -o %t < %s +; RUN: llc -dwarf64 -dwarf-version=5 -split-dwarf-file=foo.dwo -mtriple=x86_64-pc-linux -filetype=obj -function-sections -o %t -experimental-debug-variable-locations=false < %s ; RUN: llvm-dwarfdump -v -debug-info -debug-loclists %t | \ ; RUN: FileCheck %s --check-prefixes=DWO,DWO64 Index: llvm/test/CodeGen/X86/fast-regalloc-live-out-debug-values.mir =================================================================== --- llvm/test/CodeGen/X86/fast-regalloc-live-out-debug-values.mir +++ llvm/test/CodeGen/X86/fast-regalloc-live-out-debug-values.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -O0 -mtriple=x86_64-unknown-linux-gnu -start-before=regallocfast -stop-after=livedebugvalues -verify-machineinstrs -o - %s | FileCheck %s +# RUN: llc -O0 -mtriple=x86_64-unknown-linux-gnu -start-before=regallocfast -stop-after=livedebugvalues -verify-machineinstrs -o - %s -experimental-debug-variable-locations=false | FileCheck %s # DBG_VALUEs for %0 should be present in the use blocks --- | Index: llvm/test/DebugInfo/AArch64/compiler-gen-bbs-livedebugvalues.mir =================================================================== --- llvm/test/DebugInfo/AArch64/compiler-gen-bbs-livedebugvalues.mir +++ llvm/test/DebugInfo/AArch64/compiler-gen-bbs-livedebugvalues.mir @@ -1,4 +1,4 @@ -# RUN: llc -o - %s -O0 -regalloc=fast -run-pass=livedebugvalues | \ +# RUN: llc -o - %s -O0 -regalloc=fast -run-pass=livedebugvalues -experimental-debug-variable-locations=false | \ # RUN: FileCheck %s -implicit-check-not=DBG_VALUE --- | target triple = "arm64-apple-ios12.1.0" Index: llvm/test/DebugInfo/AArch64/pr40709.ll =================================================================== --- llvm/test/DebugInfo/AArch64/pr40709.ll +++ llvm/test/DebugInfo/AArch64/pr40709.ll @@ -1,4 +1,4 @@ -; RUN: llc -global-isel=1 -filetype=obj -mtriple=aarch64-linux-gnu -o - %s | llvm-dwarfdump -v - | FileCheck %s +; RUN: llc -global-isel=1 -filetype=obj -mtriple=aarch64-linux-gnu -o - %s -experimental-debug-variable-locations=false | llvm-dwarfdump -v - | FileCheck %s ; ; CHECK: .debug_info contents: ; CHECK: DW_TAG_formal_parameter Index: llvm/test/DebugInfo/ARM/partial-subreg.ll =================================================================== --- llvm/test/DebugInfo/ARM/partial-subreg.ll +++ llvm/test/DebugInfo/ARM/partial-subreg.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump -v - | FileCheck %s +; RUN: llc %s -filetype=obj -o - -experimental-debug-variable-locations=false | llvm-dwarfdump -v - | FileCheck %s ; This tests a fragment that partially covers subregister compositions. ; ; Our fragment is 96 bits long and lies in a 128-bit register, which Index: llvm/test/DebugInfo/ARM/sdag-split-arg1.ll =================================================================== --- llvm/test/DebugInfo/ARM/sdag-split-arg1.ll +++ llvm/test/DebugInfo/ARM/sdag-split-arg1.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=asm %s -o - -stop-after=livedebugvalues | FileCheck %s +; RUN: llc -filetype=asm %s -o - -stop-after=livedebugvalues -experimental-debug-variable-locations=false | FileCheck %s ; This tests that transferring debug info describing the lower bits of ; an extended SDNode works. target triple = "thumbv6m-apple-unknown-macho" Index: llvm/test/DebugInfo/COFF/fp-stack.ll =================================================================== --- llvm/test/DebugInfo/COFF/fp-stack.ll +++ llvm/test/DebugInfo/COFF/fp-stack.ll @@ -1,5 +1,5 @@ -; RUN: llc -mtriple=i686-windows-msvc < %s | FileCheck %s --check-prefix=ASM -; RUN: llc -mtriple=i686-windows-msvc < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ +; RUN: llc -mtriple=i686-windows-msvc < %s -experimental-debug-variable-locations=false | FileCheck %s --check-prefix=ASM +; RUN: llc -mtriple=i686-windows-msvc < %s -filetype=obj -experimental-debug-variable-locations=false | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32" target triple = "i686-pc-windows-msvc18.0.0" Index: llvm/test/DebugInfo/COFF/fpo-shrink-wrap.ll =================================================================== --- llvm/test/DebugInfo/COFF/fpo-shrink-wrap.ll +++ llvm/test/DebugInfo/COFF/fpo-shrink-wrap.ll @@ -1,5 +1,5 @@ -; RUN: llc -enable-shrink-wrap=true < %s | FileCheck %s --check-prefix=ASM -; RUN: llc -enable-shrink-wrap=true -filetype=obj < %s | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ +; RUN: llc -enable-shrink-wrap=true < %s -experimental-debug-variable-locations=false | FileCheck %s --check-prefix=ASM +; RUN: llc -enable-shrink-wrap=true -filetype=obj < %s -experimental-debug-variable-locations=false | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; C source: ; int doSomething(int*); Index: llvm/test/DebugInfo/COFF/fpo-stack-protect.ll =================================================================== --- llvm/test/DebugInfo/COFF/fpo-stack-protect.ll +++ llvm/test/DebugInfo/COFF/fpo-stack-protect.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s | FileCheck %s +; RUN: llc < %s -experimental-debug-variable-locations=false | FileCheck %s ; C source: ; void escape(int *); Index: llvm/test/DebugInfo/COFF/pieces.ll =================================================================== --- llvm/test/DebugInfo/COFF/pieces.ll +++ llvm/test/DebugInfo/COFF/pieces.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s | FileCheck %s --check-prefix=ASM -; RUN: llc < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ +; RUN: llc < %s -experimental-debug-variable-locations=false | FileCheck %s --check-prefix=ASM +; RUN: llc < %s -filetype=obj -experimental-debug-variable-locations=false | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; Compile with -O1 as C Index: llvm/test/DebugInfo/COFF/register-variables.ll =================================================================== --- llvm/test/DebugInfo/COFF/register-variables.ll +++ llvm/test/DebugInfo/COFF/register-variables.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s | FileCheck %s --check-prefix=ASM -; RUN: llc < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ +; RUN: llc < %s -experimental-debug-variable-locations=false | FileCheck %s --check-prefix=ASM +; RUN: llc < %s -filetype=obj -experimental-debug-variable-locations=false | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; Generated from: ; volatile int x; Index: llvm/test/DebugInfo/COFF/types-array-advanced.ll =================================================================== --- llvm/test/DebugInfo/COFF/types-array-advanced.ll +++ llvm/test/DebugInfo/COFF/types-array-advanced.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s -filetype=obj | llvm-readobj - --codeview | FileCheck %s -; RUN: llc < %s | llvm-mc -filetype=obj --triple=i686-windows | llvm-readobj - --codeview | FileCheck %s +; RUN: llc < %s -filetype=obj -experimental-debug-variable-locations=false | llvm-readobj - --codeview | FileCheck %s +; RUN: llc < %s -experimental-debug-variable-locations=false | llvm-mc -filetype=obj --triple=i686-windows | llvm-readobj - --codeview | FileCheck %s ; C++ source to regenerate: ; $ cat t.cpp Index: llvm/test/DebugInfo/Generic/linear-dbg-value.ll =================================================================== --- llvm/test/DebugInfo/Generic/linear-dbg-value.ll +++ llvm/test/DebugInfo/Generic/linear-dbg-value.ll @@ -1,5 +1,5 @@ ; FIXME: Fix machine verifier issues and remove -verify-machineinstrs=0. PR39452. -; RUN: llc -stop-before=finalize-isel -pre-RA-sched=linearize -verify-machineinstrs=0 < %s | FileCheck %s +; RUN: llc -stop-before=finalize-isel -pre-RA-sched=linearize -verify-machineinstrs=0 < %s -experimental-debug-variable-locations=false | FileCheck %s source_filename = "linear-dbg-value.ll" ; Function Attrs: nounwind readonly uwtable Index: llvm/test/DebugInfo/MIR/Mips/livedebugvars-stop-trimming-loc.mir =================================================================== --- llvm/test/DebugInfo/MIR/Mips/livedebugvars-stop-trimming-loc.mir +++ llvm/test/DebugInfo/MIR/Mips/livedebugvars-stop-trimming-loc.mir @@ -1,4 +1,4 @@ -# RUN: llc -run-pass=greedy -run-pass=virtregrewriter %s -o - | FileCheck %s +# RUN: llc -run-pass=greedy -run-pass=virtregrewriter %s -o - -experimental-debug-variable-locations=false | FileCheck %s ## This tests that LiveDebugVariables does not trim non-inlined variable ## location. Index: llvm/test/DebugInfo/MIR/X86/backup-entry-values-usage.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/backup-entry-values-usage.mir +++ llvm/test/DebugInfo/MIR/X86/backup-entry-values-usage.mir @@ -1,4 +1,5 @@ -# RUN: llc -run-pass=livedebugvalues -emit-call-site-info -march=x86-64 -o - %s | FileCheck %s +# RUN: llc -run-pass=livedebugvalues -emit-call-site-info -march=x86-64 -o - \ +# RUN: %s -experimental-debug-variable-locations=false | FileCheck %s ## Test from PR47628. ## Compiled from source: Index: llvm/test/DebugInfo/MIR/X86/dvl-livedebugvalues-clobber.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/dvl-livedebugvalues-clobber.mir +++ llvm/test/DebugInfo/MIR/X86/dvl-livedebugvalues-clobber.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=x86_64-- -run-pass livedebugvalues -o - %s | FileCheck %s --implicit-check-not=DBG_VALUE_LIST +# RUN: llc -mtriple=x86_64-- -run-pass livedebugvalues -o - %s -experimental-debug-variable-locations=false | FileCheck %s --implicit-check-not=DBG_VALUE_LIST # # Test that even after a move, clobbering a register terminates a DBG_VALUE_LIST. # Check the same for DBG_VALUE $noreg. Index: llvm/test/DebugInfo/MIR/X86/dvl-livedebugvalues-join.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/dvl-livedebugvalues-join.mir +++ llvm/test/DebugInfo/MIR/X86/dvl-livedebugvalues-join.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=x86_64-- -run-pass livedebugvalues -o - %s | FileCheck %s --implicit-check-not=DBG_VALUE_LIST +# RUN: llc -mtriple=x86_64-- -run-pass livedebugvalues -o - %s -experimental-debug-variable-locations=false | FileCheck %s --implicit-check-not=DBG_VALUE_LIST # # Test a series of joins, where: # * The locations agree, although registers have changed, Index: llvm/test/DebugInfo/MIR/X86/dvl-livedebugvalues-movements.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/dvl-livedebugvalues-movements.mir +++ llvm/test/DebugInfo/MIR/X86/dvl-livedebugvalues-movements.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=x86_64-- -run-pass livedebugvalues -o - %s | FileCheck %s --implicit-check-not=DBG_VALUE_LIST +# RUN: llc -mtriple=x86_64-- -run-pass livedebugvalues -o - %s -experimental-debug-variable-locations=false | FileCheck %s --implicit-check-not=DBG_VALUE_LIST # # The MIR below moves values from argument registers to callee saved registers, # moves that are followed by DBG_VALUEs and which should also result in Index: llvm/test/DebugInfo/MIR/X86/dvl-livedebugvalues-spillrestore.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/dvl-livedebugvalues-spillrestore.mir +++ llvm/test/DebugInfo/MIR/X86/dvl-livedebugvalues-spillrestore.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=x86_64-- -run-pass livedebugvalues -o - %s | FileCheck %s --implicit-check-not=DBG_VALUE_LIST +# RUN: llc -mtriple=x86_64-- -run-pass livedebugvalues -o - %s -experimental-debug-variable-locations=false | FileCheck %s --implicit-check-not=DBG_VALUE_LIST # # A DBG_VALUE_LIST that has a component spilt and restored should had its # expression and operands updated to refer to the stack for that period, and Index: llvm/test/DebugInfo/MIR/X86/entry-value-of-modified-param.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/entry-value-of-modified-param.mir +++ llvm/test/DebugInfo/MIR/X86/entry-value-of-modified-param.mir @@ -1,4 +1,6 @@ -# RUN: llc -run-pass=livedebugvalues -march=x86-64 -o - %s | FileCheck %s --check-prefixes=CHECK,VARLOCLDV +# RUN: llc -run-pass=livedebugvalues -march=x86-64 -o - %s \ +# RUN: -experimental-debug-variable-locations=false \ +# RUN: | FileCheck %s --check-prefixes=CHECK,VARLOCLDV # RUN: llc -force-instr-ref-livedebugvalues=1 -run-pass=livedebugvalues -march=x86-64 -o - %s | FileCheck %s --check-prefixes=CHECK,INSTRREFLDV # #extern void fn1 (int, int, int); Index: llvm/test/DebugInfo/MIR/X86/kill-after-spill.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/kill-after-spill.mir +++ llvm/test/DebugInfo/MIR/X86/kill-after-spill.mir @@ -1,4 +1,4 @@ -# RUN: llc -run-pass=livedebugvalues -o - %s | FileCheck %s +# RUN: llc -run-pass=livedebugvalues -o - %s -experimental-debug-variable-locations=false | FileCheck %s # # This test is used to acknowledge situation when spill register is killed # in instruction after the spill occurs. Index: llvm/test/DebugInfo/MIR/X86/kill-entry-value-after-diamond-bbs.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/kill-entry-value-after-diamond-bbs.mir +++ llvm/test/DebugInfo/MIR/X86/kill-entry-value-after-diamond-bbs.mir @@ -1,4 +1,4 @@ -# RUN: llc -debug-entry-values -run-pass=livedebugvalues -march=x86-64 -o - %s | FileCheck %s --check-prefixes=CHECK,VARLOCLDV +# RUN: llc -debug-entry-values -run-pass=livedebugvalues -march=x86-64 -o - %s -experimental-debug-variable-locations=false | FileCheck %s --check-prefixes=CHECK,VARLOCLDV # RUN: llc -debug-entry-values -force-instr-ref-livedebugvalues=1 -run-pass=livedebugvalues -march=x86-64 -o - %s | FileCheck %s --check-prefixes=CHECK,INSTRREFLDV # # The test case was artificially adjusted, in order to make proper diamond basic Index: llvm/test/DebugInfo/MIR/X86/live-debug-values-bad-transfer.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/live-debug-values-bad-transfer.mir +++ llvm/test/DebugInfo/MIR/X86/live-debug-values-bad-transfer.mir @@ -1,5 +1,5 @@ -# RUN: llc %s -mtriple=x86_64-unknown-unknown -o - -run-pass=livedebugvalues | FileCheck %s --implicit-check-not=DBG_VALUE -# RUN: llc %s -mtriple=x86_64-unknown-unknown -o - -run-pass=livedebugvalues -experimental-debug-variable-locations | FileCheck %s -check-prefix=NEWLDV --implicit-check-not=DBG_VALUE +# RUN: llc %s -mtriple=x86_64-unknown-unknown -o - -run-pass=livedebugvalues -experimental-debug-variable-locations=false | FileCheck %s --implicit-check-not=DBG_VALUE +# RUN: llc %s -mtriple=x86_64-unknown-unknown -o - -run-pass=livedebugvalues -experimental-debug-variable-locations=true | FileCheck %s -check-prefix=NEWLDV --implicit-check-not=DBG_VALUE # # Test that the DBG_VALUE of ecx below does not get propagated. It is considered # live-in on LiveDebugValues' first pass through the loop, but on the second it Index: llvm/test/DebugInfo/MIR/X86/live-debug-values-cutoffs.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/live-debug-values-cutoffs.mir +++ llvm/test/DebugInfo/MIR/X86/live-debug-values-cutoffs.mir @@ -4,6 +4,7 @@ # RUN: llc %s -o - -run-pass=livedebugvalues -mtriple=x86_64-unknown-unknown \ # RUN: -livedebugvalues-input-bb-limit=1 \ # RUN: -livedebugvalues-input-dbg-value-limit=1 \ +# RUN: -experimental-debug-variable-locations=false \ # RUN: | FileCheck %s -check-prefix=LDV-DISABLED # RUN: llc %s -o - -run-pass=livedebugvalues -mtriple=x86_64-unknown-unknown \ # RUN: -experimental-debug-variable-locations \ @@ -14,6 +15,7 @@ # RUN: llc %s -o - -run-pass=livedebugvalues -mtriple=x86_64-unknown-unknown \ # RUN: -livedebugvalues-input-bb-limit=1 \ # RUN: -livedebugvalues-input-dbg-value-limit=10 \ +# RUN: -experimental-debug-variable-locations=false \ # RUN: | FileCheck %s -check-prefix=LDV-ENABLED # RUN: llc %s -o - -run-pass=livedebugvalues -mtriple=x86_64-unknown-unknown \ # RUN: -experimental-debug-variable-locations \ @@ -24,6 +26,7 @@ # RUN: llc %s -o - -run-pass=livedebugvalues -mtriple=x86_64-unknown-unknown \ # RUN: -livedebugvalues-input-bb-limit=10 \ # RUN: -livedebugvalues-input-dbg-value-limit=1 \ +# RUN: -experimental-debug-variable-locations=false \ # RUN: | FileCheck %s -check-prefix=LDV-ENABLED # RUN: llc %s -o - -run-pass=livedebugvalues -mtriple=x86_64-unknown-unknown \ # RUN: -experimental-debug-variable-locations \ @@ -34,6 +37,7 @@ # RUN: llc %s -o - -run-pass=livedebugvalues -mtriple=x86_64-unknown-unknown \ # RUN: -livedebugvalues-input-bb-limit=10 \ # RUN: -livedebugvalues-input-dbg-value-limit=10 \ +# RUN: -experimental-debug-variable-locations=false \ # RUN: | FileCheck %s -check-prefix=LDV-ENABLED # RUN: llc %s -o - -run-pass=livedebugvalues -mtriple=x86_64-unknown-unknown \ # RUN: -experimental-debug-variable-locations \ Index: llvm/test/DebugInfo/MIR/X86/live-debug-values-fragments.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/live-debug-values-fragments.mir +++ llvm/test/DebugInfo/MIR/X86/live-debug-values-fragments.mir @@ -1,4 +1,4 @@ -# RUN: llc %s -o - -run-pass=livedebugvalues | FileCheck %s +# RUN: llc %s -o - -run-pass=livedebugvalues -experimental-debug-variable-locations=false | FileCheck %s # # The first func tests that, for two independent variable fragments defined in # blocks 1 and 2, _both_ their locations are propagated into the exit block. Index: llvm/test/DebugInfo/MIR/X86/live-debug-values-restore-collide.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/live-debug-values-restore-collide.mir +++ llvm/test/DebugInfo/MIR/X86/live-debug-values-restore-collide.mir @@ -1,4 +1,4 @@ -# RUN: llc %s -o - -run-pass=livedebugvalues -mtriple=x86_64-unknown-unknown | FileCheck %s +# RUN: llc %s -o - -run-pass=livedebugvalues -mtriple=x86_64-unknown-unknown -experimental-debug-variable-locations=false | FileCheck %s # # This is a regression test for register/stack variable locations being # interpreted as each other. We place a variable location on the stack, based Index: llvm/test/DebugInfo/MIR/X86/live-debug-values-restore.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/live-debug-values-restore.mir +++ llvm/test/DebugInfo/MIR/X86/live-debug-values-restore.mir @@ -1,4 +1,5 @@ -# RUN: llc -run-pass livedebugvalues -march=x86-64 -o - %s | FileCheck %s +# RUN: llc -run-pass livedebugvalues -march=x86-64 -o - %s \ +# RUN: -experimental-debug-variable-locations=false | FileCheck %s # Generated from the following source with: # clang -g -mllvm -stop-before=livedebugvalues -S -O2 test.c -o test.mir Index: llvm/test/DebugInfo/MIR/X86/live-debug-vars-unused-arg-debugonly.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/live-debug-vars-unused-arg-debugonly.mir +++ llvm/test/DebugInfo/MIR/X86/live-debug-vars-unused-arg-debugonly.mir @@ -1,4 +1,4 @@ -# RUN: llc -O1 -start-before=greedy -stop-after=virtregrewriter -o /dev/null %s -debug-only=livedebugvars 2>&1 | FileCheck -check-prefix=CHECKDBG %s +# RUN: llc -O1 -start-before=greedy -stop-after=virtregrewriter -o /dev/null %s -debug-only=livedebugvars 2>&1 -experimental-debug-variable-locations=false | FileCheck -check-prefix=CHECKDBG %s # REQUIRES: asserts Index: llvm/test/DebugInfo/MIR/X86/live-debug-vars-unused-arg.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/live-debug-vars-unused-arg.mir +++ llvm/test/DebugInfo/MIR/X86/live-debug-vars-unused-arg.mir @@ -1,4 +1,4 @@ -# RUN: llc -O1 -start-before=greedy -stop-after=virtregrewriter -o - %s | FileCheck -check-prefix=CHECKMIR %s +# RUN: llc -O1 -start-before=greedy -stop-after=virtregrewriter -o - %s -experimental-debug-variable-locations=false | FileCheck -check-prefix=CHECKMIR %s # This test case was generated by using the following c program: # extern void foo(int, int); Index: llvm/test/DebugInfo/MIR/X86/livedebugvars-crossbb-interval.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/livedebugvars-crossbb-interval.mir +++ llvm/test/DebugInfo/MIR/X86/livedebugvars-crossbb-interval.mir @@ -1,4 +1,4 @@ -# RUN: llc -start-after=phi-node-elimination -stop-after=virtregrewriter %s -mtriple=x86_64-unknown-unknown -o - | FileCheck %s +# RUN: llc -start-after=phi-node-elimination -stop-after=virtregrewriter %s -mtriple=x86_64-unknown-unknown -o - -experimental-debug-variable-locations=false | FileCheck %s # # Test that when a livedebugvars interval crosses a basic block boundary, # DBG_VALUEs are created in each covered basic block. In the IR below, control Index: llvm/test/DebugInfo/MIR/X86/mlicm-hoist-post-regalloc.mir =================================================================== --- llvm/test/DebugInfo/MIR/X86/mlicm-hoist-post-regalloc.mir +++ llvm/test/DebugInfo/MIR/X86/mlicm-hoist-post-regalloc.mir @@ -1,6 +1,6 @@ --- | ; REQUIRES: asserts - ; RUN: llc -start-before=phi-node-elimination -stop-after=machinelicm -debug-only=machinelicm -o - %s | FileCheck %s + ; RUN: llc -start-before=phi-node-elimination -stop-after=machinelicm -debug-only=machinelicm -o - %s -experimental-debug-variable-locations=false | FileCheck %s ; Ensure we execute machinelicm post register allocation. ; Line numbers should not be retained when loop invariant instructions are hoisted. ; Index: llvm/test/DebugInfo/MSP430/sdagsplit-1.ll =================================================================== --- llvm/test/DebugInfo/MSP430/sdagsplit-1.ll +++ llvm/test/DebugInfo/MSP430/sdagsplit-1.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -stop-after=livedebugvars -o %t +; RUN: llc %s -stop-after=livedebugvars -o %t -experimental-debug-variable-locations=false ; RUN: cat %t | FileCheck %s ; ; Test that we can emit debug info for large values that are split Index: llvm/test/DebugInfo/NVPTX/cu-range-hole.ll =================================================================== --- llvm/test/DebugInfo/NVPTX/cu-range-hole.ll +++ llvm/test/DebugInfo/NVPTX/cu-range-hole.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -mtriple=nvptx64-nvidia-cuda | FileCheck %s +; RUN: llc < %s -mtriple=nvptx64-nvidia-cuda -experimental-debug-variable-locations=false | FileCheck %s ; CHECK: .target sm_{{[0-9]+}}, debug Index: llvm/test/DebugInfo/NVPTX/dbg-value-const-byref.ll =================================================================== --- llvm/test/DebugInfo/NVPTX/dbg-value-const-byref.ll +++ llvm/test/DebugInfo/NVPTX/dbg-value-const-byref.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=nvptx64-nvidia-cuda < %s | FileCheck %s +; RUN: llc -mtriple=nvptx64-nvidia-cuda < %s -experimental-debug-variable-locations=false | FileCheck %s ; Generated with -O1 from: ; int f1(); ; void f2(int*); Index: llvm/test/DebugInfo/NVPTX/debug-info.ll =================================================================== --- llvm/test/DebugInfo/NVPTX/debug-info.ll +++ llvm/test/DebugInfo/NVPTX/debug-info.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -mtriple=nvptx64-nvidia-cuda | FileCheck %s +; RUN: llc < %s -mtriple=nvptx64-nvidia-cuda -experimental-debug-variable-locations=false | FileCheck %s ; // Bitcode int this test case is reduced version of compiled code below: ;__device__ inline void res(float x, float y, float *res) { *res = x + y; } Index: llvm/test/DebugInfo/PowerPC/live-debug-vars-subreg-offset.ll =================================================================== --- llvm/test/DebugInfo/PowerPC/live-debug-vars-subreg-offset.ll +++ llvm/test/DebugInfo/PowerPC/live-debug-vars-subreg-offset.ll @@ -1,4 +1,4 @@ -; RUN: llc -O3 -stop-after virtregrewriter %s -o - | FileCheck %s +; RUN: llc -O3 -stop-after virtregrewriter %s -o - -experimental-debug-variable-locations=false | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "ppc64" Index: llvm/test/DebugInfo/WebAssembly/dbg-value-dwarfdump.ll =================================================================== --- llvm/test/DebugInfo/WebAssembly/dbg-value-dwarfdump.ll +++ llvm/test/DebugInfo/WebAssembly/dbg-value-dwarfdump.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s +; RUN: llc < %s -filetype=obj -o - -experimental-debug-variable-locations=false | llvm-dwarfdump - | FileCheck %s ; Verify if dwarfdump contains DBG_VALUE associated with locals. ; See also dgb-value-ti.ll test. Index: llvm/test/DebugInfo/WebAssembly/dbg-value-live-interval.ll =================================================================== --- llvm/test/DebugInfo/WebAssembly/dbg-value-live-interval.ll +++ llvm/test/DebugInfo/WebAssembly/dbg-value-live-interval.ll @@ -1,5 +1,5 @@ ; FIXME: use -stop-after when MIR serialization output includes needed debug info. -; RUN: llc < %s -print-after=wasm-optimize-live-intervals 2>&1 | FileCheck %s +; RUN: llc < %s -print-after=wasm-optimize-live-intervals 2>&1 -experimental-debug-variable-locations=false | FileCheck %s ; CHECK: {{.*}}After WebAssembly Optimize Live Intervals ; CHECK: bb.3.for.body.for.body_crit_edge: Index: llvm/test/DebugInfo/WebAssembly/dbg-value-move-2.ll =================================================================== --- llvm/test/DebugInfo/WebAssembly/dbg-value-move-2.ll +++ llvm/test/DebugInfo/WebAssembly/dbg-value-move-2.ll @@ -1,5 +1,5 @@ ; FIXME: use -stop-after when MIR serialization output includes needed debug info. -; RUN: llc < %s -print-after=wasm-reg-stackify 2>&1 | FileCheck %s +; RUN: llc < %s -print-after=wasm-reg-stackify 2>&1 -experimental-debug-variable-locations=false | FileCheck %s ; CHECK: {{.*}}After WebAssembly Register Stackify ; CHECK: bb.2.for.body: Index: llvm/test/DebugInfo/WebAssembly/dbg-value-move.ll =================================================================== --- llvm/test/DebugInfo/WebAssembly/dbg-value-move.ll +++ llvm/test/DebugInfo/WebAssembly/dbg-value-move.ll @@ -1,5 +1,5 @@ ; FIXME: use -stop-after when MIR serialization output includes needed debug info. -; RUN: llc < %s -print-after=wasm-reg-stackify 2>&1 | FileCheck %s +; RUN: llc < %s -print-after=wasm-reg-stackify 2>&1 -experimental-debug-variable-locations=false | FileCheck %s ; CHECK: {{.*}}After WebAssembly Register Stackify ; CHECK: bb.3.for.body.for.body_crit_edge: Index: llvm/test/DebugInfo/WebAssembly/dbg-value-ti.ll =================================================================== --- llvm/test/DebugInfo/WebAssembly/dbg-value-ti.ll +++ llvm/test/DebugInfo/WebAssembly/dbg-value-ti.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -stop-after=wasm-explicit-locals | FileCheck %s +; RUN: llc < %s -stop-after=wasm-explicit-locals -experimental-debug-variable-locations=false | FileCheck %s ; Checks if DBG_VALUEs that correspond to new `local.{tee,set}` are ; using `target-index(wasm-local)` operands. Index: llvm/test/DebugInfo/X86/basic-block-sections-debug-loclist-3.ll =================================================================== --- llvm/test/DebugInfo/X86/basic-block-sections-debug-loclist-3.ll +++ llvm/test/DebugInfo/X86/basic-block-sections-debug-loclist-3.ll @@ -1,7 +1,7 @@ -; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=4 --basic-block-sections=none -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s -; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=4 --basic-block-sections=all -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s -; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=5 --basic-block-sections=none -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s -; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=5 --basic-block-sections=all -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s +; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=4 --basic-block-sections=none -filetype=obj -o - -experimental-debug-variable-locations=false | llvm-dwarfdump - | FileCheck %s +; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=4 --basic-block-sections=all -filetype=obj -o - -experimental-debug-variable-locations=false | llvm-dwarfdump - | FileCheck %s +; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=5 --basic-block-sections=none -filetype=obj -o - -experimental-debug-variable-locations=false | llvm-dwarfdump - | FileCheck %s +; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=5 --basic-block-sections=all -filetype=obj -o - -experimental-debug-variable-locations=false| llvm-dwarfdump - | FileCheck %s ; CHECK: DW_TAG_variable ; CHECK-NEXT: DW_AT_location Index: llvm/test/DebugInfo/X86/basic-block-sections-debug-loclist-4.ll =================================================================== --- llvm/test/DebugInfo/X86/basic-block-sections-debug-loclist-4.ll +++ llvm/test/DebugInfo/X86/basic-block-sections-debug-loclist-4.ll @@ -1,7 +1,7 @@ -; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=4 --basic-block-sections=none -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s -; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=4 --basic-block-sections=all -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s -; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=5 --basic-block-sections=none -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s -; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=5 --basic-block-sections=all -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s +; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=4 --basic-block-sections=none -filetype=obj -o - -experimental-debug-variable-locations=false | llvm-dwarfdump - | FileCheck %s +; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=4 --basic-block-sections=all -filetype=obj -o - -experimental-debug-variable-locations=false | llvm-dwarfdump - | FileCheck %s +; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=5 --basic-block-sections=none -filetype=obj -o - -experimental-debug-variable-locations=false | llvm-dwarfdump - | FileCheck %s +; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=5 --basic-block-sections=all -filetype=obj -o - -experimental-debug-variable-locations=false | llvm-dwarfdump - | FileCheck %s ; CHECK: DW_TAG_variable ; CHECK-NEXT: DW_AT_location Index: llvm/test/DebugInfo/X86/basic-block-sections-debug-loclist-5.ll =================================================================== --- llvm/test/DebugInfo/X86/basic-block-sections-debug-loclist-5.ll +++ llvm/test/DebugInfo/X86/basic-block-sections-debug-loclist-5.ll @@ -1,7 +1,7 @@ -; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=4 --basic-block-sections=none -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s -; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=4 --basic-block-sections=all -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s --check-prefix=CHECK --check-prefix=SECTIONS -; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=5 --basic-block-sections=none -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s -; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=5 --basic-block-sections=all -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s --check-prefix=CHECK --check-prefix=SECTIONS +; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=4 --basic-block-sections=none -filetype=obj -o - -experimental-debug-variable-locations=false | llvm-dwarfdump - | FileCheck %s +; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=4 --basic-block-sections=all -filetype=obj -o - -experimental-debug-variable-locations=false | llvm-dwarfdump - | FileCheck %s --check-prefix=CHECK --check-prefix=SECTIONS +; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=5 --basic-block-sections=none -filetype=obj -o - -experimental-debug-variable-locations=false | llvm-dwarfdump - | FileCheck %s +; RUN: llc %s -mtriple=x86_64-unknown-linux-gnu --dwarf-version=5 --basic-block-sections=all -filetype=obj -o - -experimental-debug-variable-locations=false | llvm-dwarfdump - | FileCheck %s --check-prefix=CHECK --check-prefix=SECTIONS ; CHECK: DW_TAG_variable ; CHECK-NEXT: DW_AT_location Index: llvm/test/DebugInfo/X86/constant-loclist.ll =================================================================== --- llvm/test/DebugInfo/X86/constant-loclist.ll +++ llvm/test/DebugInfo/X86/constant-loclist.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj %s -o - | llvm-dwarfdump -v -debug-info - | FileCheck %s +; RUN: llc -filetype=obj %s -o - -experimental-debug-variable-locations=false | llvm-dwarfdump -v -debug-info - | FileCheck %s ; A hand-written testcase to check 64-bit constant handling in location lists. Index: llvm/test/DebugInfo/X86/dbg-addr-dse.ll =================================================================== --- llvm/test/DebugInfo/X86/dbg-addr-dse.ll +++ llvm/test/DebugInfo/X86/dbg-addr-dse.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -o %t.s +; RUN: llc %s -o %t.s -experimental-debug-variable-locations=false ; RUN: llvm-mc %t.s -filetype=obj -triple=x86_64-windows-msvc -o %t.o ; RUN: FileCheck %s < %t.s --check-prefix=ASM ; RUN: llvm-dwarfdump %t.o | FileCheck %s --check-prefix=DWARF Index: llvm/test/DebugInfo/X86/dbg-addr.ll =================================================================== --- llvm/test/DebugInfo/X86/dbg-addr.ll +++ llvm/test/DebugInfo/X86/dbg-addr.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -o %t.s +; RUN: llc %s -o %t.s -experimental-debug-variable-locations=false ; RUN: llvm-mc -triple x86_64--linux %t.s -filetype=obj -o %t.o ; RUN: FileCheck < %t.s %s ; RUN: llvm-dwarfdump %t.o | FileCheck %s --check-prefix=DWARF Index: llvm/test/DebugInfo/X86/dbg-val-list-dangling.ll =================================================================== --- llvm/test/DebugInfo/X86/dbg-val-list-dangling.ll +++ llvm/test/DebugInfo/X86/dbg-val-list-dangling.ll @@ -5,7 +5,7 @@ ;; FIXME: When dangling nodes for a variadic dbg_value are found, we should be ;; able to recover the value in some cases. -; RUN: llc %s -start-after=codegenprepare -stop-before=finalize-isel -o - | FileCheck %s +; RUN: llc %s -start-after=codegenprepare -stop-before=finalize-isel -o - -experimental-debug-variable-locations=false | FileCheck %s ;; Check that dangling debug info in the SelectionDAG build phase is handled ;; in the same way for variadic dbg_value ndoes as non-variadics. Index: llvm/test/DebugInfo/X86/dbg-value-arg-movement.ll =================================================================== --- llvm/test/DebugInfo/X86/dbg-value-arg-movement.ll +++ llvm/test/DebugInfo/X86/dbg-value-arg-movement.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=x86_64-unknown-unknown -start-after=codegenprepare -stop-before=finalize-isel %s -o - | FileCheck %s +; RUN: llc -mtriple=x86_64-unknown-unknown -start-after=codegenprepare -stop-before=finalize-isel %s -o - -experimental-debug-variable-locations=false | FileCheck %s ; Test the movement of dbg.values of arguments. SelectionDAG tries to be ; helpful and places DBG_VALUEs of Arguments at the start of functions. Index: llvm/test/DebugInfo/X86/dbg-value-funcarg.ll =================================================================== --- llvm/test/DebugInfo/X86/dbg-value-funcarg.ll +++ llvm/test/DebugInfo/X86/dbg-value-funcarg.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=x86_64-unknown-linux-gnu -start-after=codegenprepare -stop-before=finalize-isel -o - %s | FileCheck %s +; RUN: llc -mtriple=x86_64-unknown-linux-gnu -start-after=codegenprepare -stop-before=finalize-isel -o - %s -experimental-debug-variable-locations=false | FileCheck %s ; Input to this test looked like this and was compiled using: clang -g -O1 -mllvm -stop-after=codegenprepare -S ; Index: llvm/test/DebugInfo/X86/dbg-value-funcarg2.ll =================================================================== --- llvm/test/DebugInfo/X86/dbg-value-funcarg2.ll +++ llvm/test/DebugInfo/X86/dbg-value-funcarg2.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=x86_64-unknown-linux-gnu -start-after=codegenprepare -stop-before=finalize-isel -o - %s | FileCheck %s +; RUN: llc -mtriple=x86_64-unknown-linux-gnu -start-after=codegenprepare -stop-before=finalize-isel -o - %s -experimental-debug-variable-locations=false | FileCheck %s ; Test case was generated from the following C code, ; using: clang -g -O1 -S -emit-llvm s.c -o s.ll Index: llvm/test/DebugInfo/X86/dbg-value-funcarg3.ll =================================================================== --- llvm/test/DebugInfo/X86/dbg-value-funcarg3.ll +++ llvm/test/DebugInfo/X86/dbg-value-funcarg3.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=x86_64-unknown-linux-gnu -start-after=codegenprepare -stop-before=finalize-isel -o - %s | FileCheck %s +; RUN: llc -mtriple=x86_64-unknown-linux-gnu -start-after=codegenprepare -stop-before=finalize-isel -o - %s -experimental-debug-variable-locations=false | FileCheck %s ; Input to this test looked like this and was compiled using: clang -g -O1 -mllvm -stop-after=codegenprepare -S ; Index: llvm/test/DebugInfo/X86/fission-ranges.ll =================================================================== --- llvm/test/DebugInfo/X86/fission-ranges.ll +++ llvm/test/DebugInfo/X86/fission-ranges.ll @@ -5,7 +5,7 @@ ; RUN: llc -dwarf-version=5 -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t ; RUN: llvm-dwarfdump -v %t | FileCheck --check-prefix=V5RNGLISTS %s -; RUN: llc -O0 %s -mtriple=x86_64-unknown-linux-gnu -stop-after=livedebugvalues -o -| FileCheck --check-prefix=CHECK-MIR %s +; RUN: llc -O0 %s -mtriple=x86_64-unknown-linux-gnu -stop-after=livedebugvalues -o - | FileCheck --check-prefix=CHECK-MIR %s ; LiveDebugValues should produce DBG_VALUEs for variable "b" in successive ; blocks once we recognize that it is spilled. Index: llvm/test/DebugInfo/X86/float_const_loclist.ll =================================================================== --- llvm/test/DebugInfo/X86/float_const_loclist.ll +++ llvm/test/DebugInfo/X86/float_const_loclist.ll @@ -1,5 +1,5 @@ -; RUN: llc %s -stop-after=livedebugvalues -o - | FileCheck --check-prefix=SANITY %s -; RUN: llc < %s -filetype=obj | llvm-dwarfdump -v - | FileCheck %s +; RUN: llc %s -stop-after=livedebugvalues -o - -experimental-debug-variable-locations=false | FileCheck --check-prefix=SANITY %s +; RUN: llc < %s -filetype=obj -experimental-debug-variable-locations=false | llvm-dwarfdump -v - | FileCheck %s ; Test debug_loc support for floating point constants. ; ; Created from clang -O1: Index: llvm/test/DebugInfo/X86/instr-ref-selectiondag.ll =================================================================== --- llvm/test/DebugInfo/X86/instr-ref-selectiondag.ll +++ llvm/test/DebugInfo/X86/instr-ref-selectiondag.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -mtriple=x86_64-unknown-unknown -o - -stop-before=finalize-isel \ +; RUN: llc %s -mtriple=x86_64-unknown-unknown -o - -stop-before=finalize-isel -experimental-debug-variable-locations=false \ ; RUN: | FileCheck %s --check-prefix=NORMAL \ ; RUN: --implicit-check-not=debug-instr-number \ ; RUN: --implicit-check-not=DBG_INSTR_REF Index: llvm/test/DebugInfo/X86/live-debug-values-remove-range.ll =================================================================== --- llvm/test/DebugInfo/X86/live-debug-values-remove-range.ll +++ llvm/test/DebugInfo/X86/live-debug-values-remove-range.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=x86_64-unknown-unknown %s -o - -stop-after=livedebugvalues | FileCheck %s +; RUN: llc -mtriple=x86_64-unknown-unknown %s -o - -stop-after=livedebugvalues -experimental-debug-variable-locations=false | FileCheck %s ; ; In the simple loop below, the location of the variable "toast" is %bar in ; the entry block, then set to constant zero at the end of the loop. We cannot Index: llvm/test/DebugInfo/X86/live-debug-values.ll =================================================================== --- llvm/test/DebugInfo/X86/live-debug-values.ll +++ llvm/test/DebugInfo/X86/live-debug-values.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=asm %s -o - | FileCheck %s +; RUN: llc -filetype=asm %s -o - -experimental-debug-variable-locations=false | FileCheck %s ; Test the extension of debug ranges from predecessors. ; Generated from the source file LiveDebugValues.c: Index: llvm/test/DebugInfo/X86/live-debug-variables.ll =================================================================== --- llvm/test/DebugInfo/X86/live-debug-variables.ll +++ llvm/test/DebugInfo/X86/live-debug-variables.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=x86_64-linux-gnu -filetype=obj -o - %s | llvm-dwarfdump -name i4 - \ +; RUN: llc -mtriple=x86_64-linux-gnu -filetype=obj -o - %s -experimental-debug-variable-locations=false | llvm-dwarfdump -name i4 - \ ; RUN: | FileCheck %s ; The test inlines the function F four times, with each inlined variable for Index: llvm/test/DebugInfo/X86/live-debug-vars-discard-invalid.mir =================================================================== --- llvm/test/DebugInfo/X86/live-debug-vars-discard-invalid.mir +++ llvm/test/DebugInfo/X86/live-debug-vars-discard-invalid.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=x86_64-linux-gnu -start-before greedy -stop-after virtregrewriter -o - -verify-machineinstrs %s | FileCheck %s +# RUN: llc -mtriple=x86_64-linux-gnu -start-before greedy -stop-after virtregrewriter -o - -verify-machineinstrs %s -experimental-debug-variable-locations=false | FileCheck %s --- | ; ModuleID = '' Index: llvm/test/DebugInfo/X86/live-debug-vars-intervals.mir =================================================================== --- llvm/test/DebugInfo/X86/live-debug-vars-intervals.mir +++ llvm/test/DebugInfo/X86/live-debug-vars-intervals.mir @@ -13,7 +13,7 @@ # escape(&x); # } -# RUN: llc %s -start-before=machine-scheduler -stop-after=virtregrewriter -o - \ +# RUN: llc %s -start-before=machine-scheduler -stop-after=virtregrewriter -o - -experimental-debug-variable-locations=false \ # RUN: | FileCheck %s --implicit-check-not=DBG_VALUE # Verify that DBG_VALUEs with same { Variable, Fragment } but different DIExpressions Index: llvm/test/DebugInfo/X86/op_deref.ll =================================================================== --- llvm/test/DebugInfo/X86/op_deref.ll +++ llvm/test/DebugInfo/X86/op_deref.ll @@ -1,7 +1,7 @@ ; RUN: llc -O0 -mtriple=x86_64-apple-darwin < %s -filetype=obj \ ; RUN: | llvm-dwarfdump -v -debug-info - \ ; RUN: | FileCheck %s -check-prefix=CHECK -check-prefix=DWARF4 -; RUN: llc -O0 -mtriple=x86_64-apple-darwin < %s -filetype=obj -dwarf-version=3 \ +; RUN: llc -O0 -mtriple=x86_64-apple-darwin < %s -filetype=obj -dwarf-version=3\ ; RUN: | llvm-dwarfdump -v -debug-info - \ ; RUN: | FileCheck %s -check-prefix=CHECK -check-prefix=DWARF3 Index: llvm/test/DebugInfo/X86/pieces-3.ll =================================================================== --- llvm/test/DebugInfo/X86/pieces-3.ll +++ llvm/test/DebugInfo/X86/pieces-3.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump -v - | FileCheck %s +; RUN: llc %s -filetype=obj -o - -experimental-debug-variable-locations=false | llvm-dwarfdump -v - | FileCheck %s ; ; // Compile with -O1 ; typedef struct { Index: llvm/test/DebugInfo/X86/pieces-4.ll =================================================================== --- llvm/test/DebugInfo/X86/pieces-4.ll +++ llvm/test/DebugInfo/X86/pieces-4.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s | FileCheck %s -; RUN: llc -filetype=obj < %s | llvm-dwarfdump -debug-loc - | FileCheck %s --check-prefix=DWARF +; RUN: llc < %s -experimental-debug-variable-locations=false | FileCheck %s +; RUN: llc -filetype=obj < %s -experimental-debug-variable-locations=false | llvm-dwarfdump -debug-loc - | FileCheck %s --check-prefix=DWARF ; Compile the following with -O1: Index: llvm/test/DebugInfo/X86/pr34545.ll =================================================================== --- llvm/test/DebugInfo/X86/pr34545.ll +++ llvm/test/DebugInfo/X86/pr34545.ll @@ -1,4 +1,4 @@ -; RUN: llc -O1 -filetype=asm -mtriple x86_64-unknown-linux-gnu -mcpu=x86-64 -o - %s -stop-after=livedebugvars | FileCheck %s +; RUN: llc -O1 -filetype=asm -mtriple x86_64-unknown-linux-gnu -mcpu=x86-64 -o - %s -stop-after=livedebugvars -experimental-debug-variable-locations=false | FileCheck %s ; CHECK: $eax = MOV32rm ; CHECK: DBG_VALUE $eax Index: llvm/test/DebugInfo/X86/pr40427.ll =================================================================== --- llvm/test/DebugInfo/X86/pr40427.ll +++ llvm/test/DebugInfo/X86/pr40427.ll @@ -1,4 +1,4 @@ -; RUN: llc -start-after=codegenprepare -stop-before=finalize-isel -o - < %s | FileCheck %s +; RUN: llc -start-after=codegenprepare -stop-before=finalize-isel -o - < %s -experimental-debug-variable-locations=false | FileCheck %s ; Test for correct placement of DBG_VALUE, which in PR40427 is placed before ; the load instruction it refers to. The circumstance replicated here is where ; two instructions in a row, trunc and add, begin with no-op Copy{To,From}Reg Index: llvm/test/DebugInfo/X86/sdag-combine.ll =================================================================== --- llvm/test/DebugInfo/X86/sdag-combine.ll +++ llvm/test/DebugInfo/X86/sdag-combine.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -stop-after=livedebugvars -o - | FileCheck %s +; RUN: llc %s -stop-after=livedebugvars -o - -experimental-debug-variable-locations=false | FileCheck %s source_filename = "/tmp/t.ll" target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.13" Index: llvm/test/DebugInfo/X86/sdag-dangling-dbgvalue.ll =================================================================== --- llvm/test/DebugInfo/X86/sdag-dangling-dbgvalue.ll +++ llvm/test/DebugInfo/X86/sdag-dangling-dbgvalue.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -stop-before finalize-isel -o - | FileCheck %s +; RUN: llc %s -stop-before finalize-isel -o - -experimental-debug-variable-locations=false | FileCheck %s ;-------------------------------------------------------------------- ; This test case is basically generated from the following C code. Index: llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-1.ll =================================================================== --- llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-1.ll +++ llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-1.ll @@ -1,4 +1,4 @@ -; RUN: llc -start-after=codegenprepare -stop-before finalize-isel -o - %s | FileCheck %s +; RUN: llc -start-after=codegenprepare -stop-before finalize-isel -o - %s -experimental-debug-variable-locations=false | FileCheck %s ; This test case was generated from the following debug.c program, ; using: clang debug.c -g -O1 -S -o dbg_value_phi_isel1.ll -emit-llvm Index: llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-2.ll =================================================================== --- llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-2.ll +++ llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-2.ll @@ -1,4 +1,4 @@ -; RUN: llc -start-after=codegenprepare -stop-before finalize-isel -o - %s | FileCheck %s +; RUN: llc -start-after=codegenprepare -stop-before finalize-isel -o - %s -experimental-debug-variable-locations=false | FileCheck %s ; This test case is a modified version of dbg_value_phi_isel1.ll ; where the llvm.dbg.value nodes in for.body has been moved. Index: llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-3.ll =================================================================== --- llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-3.ll +++ llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-3.ll @@ -1,4 +1,4 @@ -; RUN: llc -start-after=codegenprepare -stop-before finalize-isel -o - %s | FileCheck %s +; RUN: llc -start-after=codegenprepare -stop-before finalize-isel -o - %s -experimental-debug-variable-locations=false | FileCheck %s ; This test case was generated from the following phi-split.c program, ; using: clang phi-split.c -g -O1 -S -o - --target=i386 -emit-llvm Index: llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-4.ll =================================================================== --- llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-4.ll +++ llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-4.ll @@ -1,4 +1,4 @@ -; RUN: llc -start-after=codegenprepare -stop-before finalize-isel -o - %s | FileCheck %s +; RUN: llc -start-after=codegenprepare -stop-before finalize-isel -o - %s -experimental-debug-variable-locations=false | FileCheck %s ; This is a reproducer based on the test case from PR37321. Index: llvm/test/DebugInfo/X86/sdag-dbgvalue-ssareg.ll =================================================================== --- llvm/test/DebugInfo/X86/sdag-dbgvalue-ssareg.ll +++ llvm/test/DebugInfo/X86/sdag-dbgvalue-ssareg.ll @@ -1,4 +1,4 @@ -; RUN: llc -start-after=codegenprepare -stop-before finalize-isel -o - %s | FileCheck %s +; RUN: llc -start-after=codegenprepare -stop-before finalize-isel -o - %s -experimental-debug-variable-locations=false | FileCheck %s ; Test that dbg.values of an SSA variable that's not used in a basic block, ; is converted to a DBG_VALUE in that same basic block. We know that %1 is Index: llvm/test/DebugInfo/X86/sdag-ir-salvage.ll =================================================================== --- llvm/test/DebugInfo/X86/sdag-ir-salvage.ll +++ llvm/test/DebugInfo/X86/sdag-ir-salvage.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=x86_64-unknown-unknown -start-after=codegenprepare -stop-before finalize-isel %s -o - | FileCheck %s +; RUN: llc -mtriple=x86_64-unknown-unknown -start-after=codegenprepare -stop-before finalize-isel %s -o - -experimental-debug-variable-locations=false | FileCheck %s ; Test that the dbg.value for %baz, which doesn't exist in the 'next' bb, ; can be salvaged back to the underlying argument vreg. Index: llvm/test/DebugInfo/X86/sdag-salvage-add.ll =================================================================== --- llvm/test/DebugInfo/X86/sdag-salvage-add.ll +++ llvm/test/DebugInfo/X86/sdag-salvage-add.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=x86_64-unknown-unknown -stop-before livedebugvalues %s -o - \ +; RUN: llc -mtriple=x86_64-unknown-unknown -stop-before livedebugvalues %s -o - -experimental-debug-variable-locations=false \ ; RUN: | FileCheck %s ; ; Generated at -O1 from: Index: llvm/test/DebugInfo/X86/sdag-split-arg.ll =================================================================== --- llvm/test/DebugInfo/X86/sdag-split-arg.ll +++ llvm/test/DebugInfo/X86/sdag-split-arg.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -filetype=asm %s -o - | FileCheck %s +; RUN: llc -O0 -filetype=asm %s -o - -experimental-debug-variable-locations=false | FileCheck %s ; Test large integral function arguments passed in multiple registers. ; CHECK: DEBUG_VALUE: foo:bar <- [DW_OP_LLVM_fragment 64 16] ${{([a-d]x)|(si)|(di)|(bp)|(r[0-9]+w)}} ; CHECK: DEBUG_VALUE: foo:bar <- [DW_OP_LLVM_fragment 48 16] ${{([a-d]x)|(si)|(di)|(bp)|(r[0-9]+w)}} Index: llvm/test/DebugInfo/X86/sdag-transfer-dbgvalue.ll =================================================================== --- llvm/test/DebugInfo/X86/sdag-transfer-dbgvalue.ll +++ llvm/test/DebugInfo/X86/sdag-transfer-dbgvalue.ll @@ -1,4 +1,4 @@ -; RUN: llc -start-after=codegenprepare -stop-before finalize-isel -o - %s | FileCheck %s +; RUN: llc -start-after=codegenprepare -stop-before finalize-isel -o - %s -experimental-debug-variable-locations=false | FileCheck %s ; This tests that transferDbgValues() changes order of SDDbgValue transferred ; to another node and debug info for 'ADD32ri' appears *after* the instruction. Index: llvm/test/DebugInfo/X86/sdagsplit-1.ll =================================================================== --- llvm/test/DebugInfo/X86/sdagsplit-1.ll +++ llvm/test/DebugInfo/X86/sdagsplit-1.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -stop-after=livedebugvars -o %t +; RUN: llc %s -stop-after=livedebugvars -o %t -experimental-debug-variable-locations=false ; RUN: cat %t | FileCheck %s ; ; Test that we can emit debug info for large values that are split Index: llvm/test/DebugInfo/X86/spill-indirect-nrvo.ll =================================================================== --- llvm/test/DebugInfo/X86/spill-indirect-nrvo.ll +++ llvm/test/DebugInfo/X86/spill-indirect-nrvo.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s | FileCheck -check-prefixes=CHECK,OPT %s -; RUN: llc -O0 < %s | FileCheck -check-prefixes=CHECK,OPTNONE %s +; RUN: llc < %s -experimental-debug-variable-locations=false | FileCheck -check-prefixes=CHECK,OPT %s +; RUN: llc -O0 < %s -experimental-debug-variable-locations=false | FileCheck -check-prefixes=CHECK,OPTNONE %s ; Make sure we insert DW_OP_deref when spilling indirect DBG_VALUE instructions. Index: llvm/test/DebugInfo/X86/spill-nontrivial-param.ll =================================================================== --- llvm/test/DebugInfo/X86/spill-nontrivial-param.ll +++ llvm/test/DebugInfo/X86/spill-nontrivial-param.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s | FileCheck %s +; RUN: llc < %s -experimental-debug-variable-locations=false | FileCheck %s ; Make sure we insert DW_OP_deref when spilling indirect DBG_VALUE instructions. ; In this example, 'nt' is passed by address because it is not trivially Index: llvm/test/DebugInfo/X86/spill-nospill.ll =================================================================== --- llvm/test/DebugInfo/X86/spill-nospill.ll +++ llvm/test/DebugInfo/X86/spill-nospill.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s | FileCheck %s -; RUN: llc < %s -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF +; RUN: llc < %s -experimental-debug-variable-locations=false | FileCheck %s +; RUN: llc < %s -filetype=obj -experimental-debug-variable-locations=false | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF ; This test creates two UserValues in LiveDebugVariables with one location ; each. x must be spilled, but y will be allocated to a CSR. x's location Index: llvm/test/DebugInfo/X86/stack-value-dwarf2.ll =================================================================== --- llvm/test/DebugInfo/X86/stack-value-dwarf2.ll +++ llvm/test/DebugInfo/X86/stack-value-dwarf2.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj -o - %s | llvm-dwarfdump -debug-loc - | FileCheck %s +; RUN: llc -filetype=obj -o - %s -experimental-debug-variable-locations=false | llvm-dwarfdump -debug-loc - | FileCheck %s ; Note that it would be even better to avoid emitting the empty piece. ; CHECK: {{.*}}: DW_OP_piece 0x8{{$}} Index: llvm/test/MC/WebAssembly/debug-byval-struct.ll =================================================================== --- llvm/test/MC/WebAssembly/debug-byval-struct.ll +++ llvm/test/MC/WebAssembly/debug-byval-struct.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj %s -o - | llvm-dwarfdump - | FileCheck %s +; RUN: llc -filetype=obj %s -o - -experimental-debug-variable-locations=false | llvm-dwarfdump - | FileCheck %s ; Test that byval args get correct DWARF debug locations. ; These end up in the callee as Wasm locals, which is atypical. Index: llvm/test/tools/llvm-locstats/locstats.ll =================================================================== --- llvm/test/tools/llvm-locstats/locstats.ll +++ llvm/test/tools/llvm-locstats/locstats.ll @@ -1,6 +1,6 @@ ; UNSUPPORTED: system-windows ; REQUIRES: x86-registered-target -; RUN: llc %s -o %t0.o -filetype=obj +; RUN: llc %s -o %t0.o -filetype=obj -experimental-debug-variable-locations=false ; RUN: %llvm-locstats %t0.o | FileCheck %s --check-prefix=LOCSTATS ; ; Test the llvm-locstats output.