MachineOperand/MIParser: Do not print debug-use flag, infer it
authorMatthias Braun <matze@braunis.de>
Tue, 30 Oct 2018 23:28:27 +0000 (23:28 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 30 Oct 2018 23:28:27 +0000 (23:28 +0000)
commita83403892ac33484c0a830a21313fdf2473bcd0f
tree550dcea73d2af7188357ced4f2e56feddada4562
parentbdc6deedd3ee87662be96ceef44850cf1c0b47e7
MachineOperand/MIParser: Do not print debug-use flag, infer it

The debug-use flag must be set exactly for uses on DBG_VALUEs.  This is
so obvious that it can be trivially inferred while parsing. This will
reduce noise when printing while omitting an information that has little
value to the user.

The parser will keep recognizing the flag for compatibility with old
`.mir` files.

Differential Revision: https://reviews.llvm.org/D53903

llvm-svn: 345671
66 files changed:
llvm/lib/CodeGen/MIRParser/MIParser.cpp
llvm/lib/CodeGen/MachineOperand.cpp
llvm/test/CodeGen/AArch64/GlobalISel/debug-cpp.ll
llvm/test/CodeGen/AArch64/GlobalISel/debug-insts.ll
llvm/test/CodeGen/AArch64/GlobalISel/regbankselect-dbg-value.mir
llvm/test/CodeGen/AArch64/GlobalISel/select-dbg-value.mir
llvm/test/CodeGen/AArch64/phi-dbg.ll
llvm/test/CodeGen/AMDGPU/fold-immediate-operand-shrink-with-carry.mir
llvm/test/CodeGen/AMDGPU/regcoalesce-dbg.mir
llvm/test/CodeGen/AMDGPU/sched-crash-dbg-value.mir
llvm/test/CodeGen/ARM/ARMLoadStoreDBG.mir
llvm/test/CodeGen/ARM/dbg-range-extension.mir
llvm/test/CodeGen/ARM/sched-it-debug-nodes.mir
llvm/test/CodeGen/Hexagon/early-if-debug.mir
llvm/test/CodeGen/MIR/X86/diexpr-win32.mir
llvm/test/CodeGen/MIR/X86/instructions-debug-location.mir
llvm/test/CodeGen/MIR/X86/pr38773.mir
llvm/test/CodeGen/PowerPC/debuginfo-split-int.ll
llvm/test/CodeGen/PowerPC/debuginfo-stackarg.ll
llvm/test/CodeGen/X86/coalesce-dbg-value-subreg-rewrite.mir
llvm/test/CodeGen/X86/dbg-changes-codegen-branch-folding2.mir
llvm/test/CodeGen/X86/dbg-value-superreg-copy.mir
llvm/test/CodeGen/X86/lea-opt-with-debug.mir
llvm/test/CodeGen/X86/machine-cp-debug.mir
llvm/test/CodeGen/X86/opt_phis.mir
llvm/test/CodeGen/X86/post-ra-sched-with-debug.mir
llvm/test/CodeGen/X86/postra-ignore-dbg-instrs.mir
llvm/test/CodeGen/X86/shrink_wrap_dbg_value.mir
llvm/test/DebugInfo/AArch64/compiler-gen-bbs-livedebugvalues.ll
llvm/test/DebugInfo/ARM/sdag-split-arg1.ll
llvm/test/DebugInfo/MIR/AArch64/clobber-sp.mir
llvm/test/DebugInfo/MIR/ARM/live-debug-values-reg-copy.mir
llvm/test/DebugInfo/MIR/ARM/split-superreg-complex.mir
llvm/test/DebugInfo/MIR/ARM/split-superreg-piece.mir
llvm/test/DebugInfo/MIR/ARM/split-superreg.mir
llvm/test/DebugInfo/MIR/Mips/last-inst-bundled.mir
llvm/test/DebugInfo/MIR/Mips/live-debug-values-reg-copy.mir
llvm/test/DebugInfo/MIR/X86/bit-piece-dh.mir
llvm/test/DebugInfo/MIR/X86/kill-after-spill.mir
llvm/test/DebugInfo/MIR/X86/live-debug-values-3preds.mir
llvm/test/DebugInfo/MIR/X86/live-debug-values-reg-copy.mir
llvm/test/DebugInfo/MIR/X86/live-debug-values-spill.mir
llvm/test/DebugInfo/MIR/X86/live-debug-values.mir
llvm/test/DebugInfo/MIR/X86/live-debug-vars-unused-arg-debugonly.mir
llvm/test/DebugInfo/MIR/X86/live-debug-vars-unused-arg.mir
llvm/test/DebugInfo/MIR/X86/livedebugvalues-limit.mir
llvm/test/DebugInfo/MIR/X86/mlicm-hoist.mir
llvm/test/DebugInfo/MIR/X86/regcoalescer.mir
llvm/test/DebugInfo/MSP430/sdagsplit-1.ll
llvm/test/DebugInfo/WebAssembly/dbg-value-live-interval.ll
llvm/test/DebugInfo/WebAssembly/dbg-value-move-2.ll
llvm/test/DebugInfo/WebAssembly/dbg-value-move.ll
llvm/test/DebugInfo/X86/bbjoin.ll
llvm/test/DebugInfo/X86/live-debug-vars-discard-invalid.mir
llvm/test/DebugInfo/X86/live-debug-vars-dse.mir
llvm/test/DebugInfo/X86/live-debug-vars-index.mir
llvm/test/DebugInfo/X86/pr34545.ll
llvm/test/DebugInfo/X86/sdag-combine.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-legalize-multires.ll
llvm/test/DebugInfo/X86/sdag-salvage-add.ll
llvm/test/DebugInfo/X86/sdagsplit-1.ll