[PATCH] D31604: [DebugInfo][X86] Improve X86 Optimize LEAs handling of debug values.

Andrew Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 3 08:35:18 PDT 2017


andrewng created this revision.

This is a follow up to the fix in r298360 <https://reviews.llvm.org/rL298360> to improve the handling of debug values when redundant LEAs are removed. The fix in r298360 <https://reviews.llvm.org/rL298360> effectively discarded the debug values. This patch now attempts to preserve the debug values by using the Dwarf 4 DW_OP_stack_value operation.


https://reviews.llvm.org/D31604

Files:
  lib/Target/X86/X86OptimizeLEAs.cpp
  test/CodeGen/X86/lea-opt-with-debug.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31604.93871.patch
Type: text/x-patch
Size: 12091 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170403/426cd4d7/attachment.bin>


More information about the llvm-commits mailing list