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/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/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/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/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/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.