diff options
| author | Reid Kleckner <rnk@google.com> | 2017-08-31 15:56:49 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2017-08-31 15:56:49 +0000 |
| commit | 08f5fd51cc1690c86bac2f1dd841d27da2eefe44 (patch) | |
| tree | 1d0792b0d3d2da9dd2f1b61d7d919e474c394b8b /llvm/test/CodeGen | |
| parent | 341317fda43ba257be63836d6ddb3e3d3865ac33 (diff) | |
| download | bcm5719-llvm-08f5fd51cc1690c86bac2f1dd841d27da2eefe44.tar.gz bcm5719-llvm-08f5fd51cc1690c86bac2f1dd841d27da2eefe44.zip | |
[codeview] Generalize DIExpression parsing to handle load chains
Summary:
Hopefully this also clarifies exactly when and why we're rewriting
certiain S_LOCALs using reference types: We're using the reference type
to stand in for a zero-offset load.
Reviewers: inglorion
Subscribers: llvm-commits, hiraditya
Differential Revision: https://reviews.llvm.org/D37309
llvm-svn: 312247
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/MIR/X86/diexpr-win32.mir | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/MIR/X86/diexpr-win32.mir b/llvm/test/CodeGen/MIR/X86/diexpr-win32.mir index d5dc3e46554..38c78ee69cd 100644 --- a/llvm/test/CodeGen/MIR/X86/diexpr-win32.mir +++ b/llvm/test/CodeGen/MIR/X86/diexpr-win32.mir @@ -195,7 +195,7 @@ body: | CFI_INSTRUCTION offset %esi, -8 %esi = MOV32rm %esp, 1, _, 8, _ :: (load 4 from %fixed-stack.2) DBG_VALUE %esp, 0, !26, !10, debug-location !25 - DBG_VALUE %esp, 0, !23, !11, 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) @@ -246,7 +246,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, !28, debug-location !34 + DBG_VALUE debug-use %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 |

