llvm-project/llvm/test/DebugInfo/MIR/X86
David Stenberg 13edfcc97d [DebugInfo] Clear subreg in setDebugValueUndef()
When switching the register debug operands to $noreg in
setupDebugValueUndef() also clear the sub-register indices for virtual
registers. This is done when marking DBG_VALUEs undef in other cases,
e.g. in LiveDebugVariables. I have not found any cases where leaving the
sub-register index causes any issues, and the indices would eventually
get dropped when LiveDebugVariables reinserted the undef DBG_VALUEs
after register scheduling, but if nothing else it looked a bit weird in
printouts to have sub-register indices on $noreg, and I don't think the
sub-register index holds any meaningful information at that point.

I have not been able to find any source-level reproducer for this with
an upstream target, so I have just added an instrumented machine-sink
test.

Reviewed By: djtodoro, jmorse

Differential Revision: https://reviews.llvm.org/D89941
2020-10-23 08:49:14 +02:00
..
avoid-single-entry-value-location.mir
bit-piece-dh.mir
call-site-gnu-vs-dwarf5-attrs.mir [DWARF][EntryValues] Emit GNU extensions in the case of DWARF 4 + SCE 2020-07-24 14:33:57 +02:00
call-site-param-mov16.mir [DebugInfo] Fix build failure on the mingw 2020-03-12 08:18:01 +01:00
callsite-stack-value.mir [DwarfDebug] Improve single location detection in validThroughout (2/4) 2020-08-27 11:52:29 +01:00
clobbered-fragments.mir
dbg-call-site-spilled-arg-multiple-defs.mir [CallSiteInfo] Enable the call site info only for -g + optimizations 2020-03-09 12:12:44 +01:00
dbg-call-site-spilled-arg.mir [CallSiteInfo] Enable the call site info only for -g + optimizations 2020-03-09 12:12:44 +01:00
dbg-stack-value-range.mir
dbgcall-site-copy-super-sub.mir Reland D73534: [DebugInfo] Enable the debug entry values feature by default 2020-03-19 13:57:30 +01:00
dbgcall-site-interpretation.mir Reland D73534: [DebugInfo] Enable the debug entry values feature by default 2020-03-19 13:57:30 +01:00
dbgcall-site-lea-interpretation.mir Reland D73534: [DebugInfo] Enable the debug entry values feature by default 2020-03-19 13:57:30 +01:00
dbgcall-site-partial-describe.mir Reland D73534: [DebugInfo] Enable the debug entry values feature by default 2020-03-19 13:57:30 +01:00
dbgcall-site-reference.mir Reland D73534: [DebugInfo] Enable the debug entry values feature by default 2020-03-19 13:57:30 +01:00
dbgcall-site-reg-shuffle.mir Reland D73534: [DebugInfo] Enable the debug entry values feature by default 2020-03-19 13:57:30 +01:00
dbgcall-site-two-fwd-reg-defs.mir Reland D73534: [DebugInfo] Enable the debug entry values feature by default 2020-03-19 13:57:30 +01:00
dbginfo-entryvals.mir Reland D73534: [DebugInfo] Enable the debug entry values feature by default 2020-03-19 13:57:30 +01:00
debug-call-site-param.mir Reland D73534: [DebugInfo] Enable the debug entry values feature by default 2020-03-19 13:57:30 +01:00
debug-entry-value-operation.mir [DWARF] Avoid entry_values production for SCE 2020-07-24 13:34:05 +02:00
debug-loc-0.mir
empty-inline.mir
entry-value-of-modified-param.mir Reland D73534: [DebugInfo] Enable the debug entry values feature by default 2020-03-19 13:57:30 +01:00
entry-values-diamond-bbs.mir [LiveDebugValues] Speed up removeEntryValue, NFC 2020-06-01 11:02:36 -07:00
kill-after-spill.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
kill-entry-value-after-diamond-bbs.mir
lit.local.cfg
live-debug-values-3preds.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
live-debug-values-bad-transfer.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
live-debug-values-cutoffs.mir [LiveDebugValues] Add cutoffs to avoid pathological behavior 2020-05-28 13:53:40 -07:00
live-debug-values-entry-transfer.mir
live-debug-values-fragments.mir [llvm] Fix missing FileCheck directive colons 2020-04-06 09:59:08 -06:00
live-debug-values-reg-copy.mir
live-debug-values-restore-collide.mir
live-debug-values-restore.mir
live-debug-values-spill.mir
live-debug-values-stack-clobber.mir
live-debug-values.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
live-debug-vars-unused-arg-debugonly.mir
live-debug-vars-unused-arg.mir
livedebugvalues-ignores-metaInstructions.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues-limit.mir
livedebugvalues_basic_diamond.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_basic_diamond_match_clobber.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_basic_diamond_match_move.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_basic_diamond_one_clobber.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_basic_diamond_one_move.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_basic_loop.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_bb_to_bb.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_bb_to_bb_clobbered.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_bb_to_bb_move_to_clobber.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_load_in_loop.mir [LiveDebugValues][NFC] Add additional tests 2020-09-11 15:34:37 +01:00
livedebugvalues_loop_break.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_loop_break_clobbered.mir
livedebugvalues_loop_clobbered.mir
livedebugvalues_loop_diamond.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_loop_diamond_clobber.mir
livedebugvalues_loop_diamond_move.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_loop_early_clobber.mir
livedebugvalues_loop_terminated.mir [LiveDebugValues] Terminate open ranges on DBG_VALUE $noreg 2020-04-16 10:26:47 +01:00
livedebugvalues_loop_two_backedge.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_loop_two_backedge_clobbered.mir
livedebugvalues_loop_within_loop.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_loop_within_loop_clobbered.mir
livedebugvalues_loop_within_loop_moved.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_loop_within_loop_outer_moved.mir [LiveDebugValues][NFC] Re-land 60db26a66d, add instr-ref tests 2020-09-11 12:14:44 +01:00
livedebugvalues_many_loop_heads.mir [LiveDebugValues][NFC] Add additional tests 2020-09-11 15:34:37 +01:00
livedebugvars-crossbb-interval.mir
machine-cse.mir
machinesink-subreg.mir [DebugInfo] Clear subreg in setDebugValueUndef() 2020-10-23 08:49:14 +02:00
machinesink.mir
mlicm-hoist-post-regalloc.mir [debuginfo] Fix broken tests from MachineLICM salvaging fix 2020-05-26 22:46:07 +01:00
mlicm-hoist-pre-regalloc.mir [debuginfo] Fix broken tests from MachineLICM salvaging fix 2020-05-26 22:46:07 +01:00
mlicm-sink.mir [debuginfo] Fix broken tests from MachineLICM salvaging fix 2020-05-26 22:46:07 +01:00
multiple-param-dbg-value-entry.mir
no-cfi-loc.mir
postra-subreg-sink.mir
prolog-epilog-indirection.mir
propagate-entry-value-cross-bbs.mir Reland D73534: [DebugInfo] Enable the debug entry values feature by default 2020-03-19 13:57:30 +01:00
regcoalescer.mir
regcoalescing-clears-dead-dbgvals.mir
sink-leaves-undef.mir
unreachable-block-call-site.mir Reland D73534: [DebugInfo] Enable the debug entry values feature by default 2020-03-19 13:57:30 +01:00