This is the first patch in a series of test updates, to change X86 tests to look for instruction referencing variable locations. This patch contains a bunch of replacements of:
DBG_VALUE $somereg
with,
SOMEINST debug-instr-number1 DBG_INSTR_REF 1, 0, ...
It's mostly SelectionDAG tests that are making sure that the variable location assignment is placed in the correct position in the instructions.
Added this because various parts of instruction referencing try to skip doing any work if there are no instructions in scope -- and no "real" instructions in this function are in scope.