diff options
| author | Matthias Braun <matze@braunis.de> | 2018-10-30 23:28:27 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2018-10-30 23:28:27 +0000 |
| commit | a83403892ac33484c0a830a21313fdf2473bcd0f (patch) | |
| tree | 550dcea73d2af7188357ced4f2e56feddada4562 /llvm/test/CodeGen/MIR | |
| parent | bdc6deedd3ee87662be96ceef44850cf1c0b47e7 (diff) | |
| download | bcm5719-llvm-a83403892ac33484c0a830a21313fdf2473bcd0f.tar.gz bcm5719-llvm-a83403892ac33484c0a830a21313fdf2473bcd0f.zip | |
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
Diffstat (limited to 'llvm/test/CodeGen/MIR')
| -rw-r--r-- | llvm/test/CodeGen/MIR/X86/diexpr-win32.mir | 6 | ||||
| -rw-r--r-- | llvm/test/CodeGen/MIR/X86/instructions-debug-location.mir | 6 | ||||
| -rw-r--r-- | llvm/test/CodeGen/MIR/X86/pr38773.mir | 4 |
3 files changed, 10 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/MIR/X86/diexpr-win32.mir b/llvm/test/CodeGen/MIR/X86/diexpr-win32.mir index 3388ef714d4..384c6bf57c9 100644 --- a/llvm/test/CodeGen/MIR/X86/diexpr-win32.mir +++ b/llvm/test/CodeGen/MIR/X86/diexpr-win32.mir @@ -193,8 +193,8 @@ body: | CFI_INSTRUCTION def_cfa_offset 8 CFI_INSTRUCTION offset $esi, -8 $esi = MOV32rm $esp, 1, _, 8, _ :: (load 4 from %fixed-stack.2) - DBG_VALUE debug-use $esp, 0, !26, !10, debug-location !25 - DBG_VALUE debug-use $esp, 0, !23, !DIExpression(DW_OP_plus_uconst, 8, DW_OP_deref), debug-location !25 + DBG_VALUE $esp, 0, !26, !10, debug-location !25 + DBG_VALUE $esp, 0, !23, !DIExpression(DW_OP_plus_uconst, 8, DW_OP_deref), debug-location !25 CALLpcrel32 @getString, csr_32, implicit $esp, implicit-def $esp, implicit-def $eax, debug-location !29 $ecx = MOV32rm $eax, 1, _, 0, _, debug-location !29 :: (dereferenceable load 4 from %ir.1) $edx = MOV32rm $eax, 1, _, 4, _, debug-location !29 :: (dereferenceable load 4 from %ir.1 + 4) @@ -245,7 +245,7 @@ body: | bb.0.entry: $eax = MOV32rm $esp, 1, _, 4, _ :: (load 4 from %fixed-stack.1) $eax = MOV32rm killed $eax, 1, _, 0, _, debug-location !34 :: (load 4 from %ir.0) - DBG_VALUE debug-use $eax, 0, !35, !DIExpression(DW_OP_constu, 4, DW_OP_minus), debug-location !34 + DBG_VALUE $eax, 0, !35, !DIExpression(DW_OP_constu, 4, DW_OP_minus), debug-location !34 $eax = ADD32rm killed $eax, $esp, 1, _, 8, _, implicit-def dead $eflags, debug-location !36 :: (load 4 from %fixed-stack.0) RET 0, $eax, debug-location !36 diff --git a/llvm/test/CodeGen/MIR/X86/instructions-debug-location.mir b/llvm/test/CodeGen/MIR/X86/instructions-debug-location.mir index ec819628f44..8b6c5cbf526 100644 --- a/llvm/test/CodeGen/MIR/X86/instructions-debug-location.mir +++ b/llvm/test/CodeGen/MIR/X86/instructions-debug-location.mir @@ -59,10 +59,14 @@ stack: body: | bb.0.entry: liveins: $edi - ; CHECK: DBG_VALUE debug-use $noreg, 0, !11, !DIExpression(), debug-location !12 + ; CHECK: DBG_VALUE $noreg, 0, !11, !DIExpression(), debug-location !12 + ; CHECK: DBG_VALUE $noreg, 0, !11, !DIExpression(), debug-location !12 ; CHECK: $eax = COPY %0, debug-location !13 ; CHECK: RETQ $eax, debug-location !13 %0 = COPY $edi + DBG_VALUE _, 0, !12, !DIExpression(), debug-location !13 + ; Test whether debug-use is still recognized for compatibility with old + ; files. DBG_VALUE debug-use _, 0, !12, !DIExpression(), debug-location !13 MOV32mr %stack.0.x.addr, 1, _, 0, _, %0 $eax = COPY %0, debug-location !14 diff --git a/llvm/test/CodeGen/MIR/X86/pr38773.mir b/llvm/test/CodeGen/MIR/X86/pr38773.mir index 0cf0bb25b9e..19b0debf297 100644 --- a/llvm/test/CodeGen/MIR/X86/pr38773.mir +++ b/llvm/test/CodeGen/MIR/X86/pr38773.mir @@ -97,8 +97,8 @@ body: | IDIV32r killed renamable $ecx, implicit-def $eax, implicit-def dead $edx, implicit-def dead $eflags, implicit $eax, implicit killed $edx renamable $ecx = COPY $eax ; CHECK: IDIV32r killed renamable $ecx - ; CHECK-NEXT: DBG_VALUE debug-use $eax, debug-use $noreg, !12, !DIExpression(), debug-location !13 - DBG_VALUE debug-use $ecx, debug-use $noreg, !12, !DIExpression(), debug-location !13 + ; CHECK-NEXT: DBG_VALUE $eax, $noreg, !12, !DIExpression(), debug-location !13 + DBG_VALUE $ecx, $noreg, !12, !DIExpression(), debug-location !13 $eax = COPY killed renamable $ecx RET 0, $eax |

