[DebugInfo][InstrRef][NFC] Test changes: DBG_VALUE to DBG_INSTR_REF
authorJeremy Morse <jeremy.morse@sony.com>
Mon, 29 Nov 2021 20:40:20 +0000 (20:40 +0000)
committerJeremy Morse <jeremy.morse@sony.com>
Mon, 29 Nov 2021 20:53:48 +0000 (20:53 +0000)
commit32815bc907c4bf25866545da93b00b5d6c2ce45f
tree9ed84db914aadb9180e945ada6b438eecff429c0
parent25eb7fa01d7ebbe67648ea03841cda55b4239ab2
[DebugInfo][InstrRef][NFC] Test changes: DBG_VALUE to DBG_INSTR_REF

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.

To avoid a loss in test coverage of SelectionDAG, which is used by a lot
of different backends, all these tests now have two modes and sets of RUN
lines, one for DBG_VALUE mode, the other for instruction referencing.

Differential Revision: https://reviews.llvm.org/D114258
llvm/test/DebugInfo/X86/pr34545.ll
llvm/test/DebugInfo/X86/pr40427.ll
llvm/test/DebugInfo/X86/sdag-dangling-dbgvalue.ll
llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-1.ll
llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-2.ll
llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-3.ll
llvm/test/DebugInfo/X86/sdag-dbgvalue-phi-use-4.ll
llvm/test/DebugInfo/X86/sdag-dbgvalue-ssareg.ll
llvm/test/DebugInfo/X86/sdag-ir-salvage.ll
llvm/test/DebugInfo/X86/sdag-salvage-add.ll
llvm/test/DebugInfo/X86/sdag-transfer-dbgvalue.ll