[PATCH] D51640: [DebugInfo] Normalize common kinds of DWARF sub-expressions.
Jonas Devlieghere via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 4 09:09:10 PDT 2018
JDevlieghere created this revision.
JDevlieghere added reviewers: aprantl, vsk.
JDevlieghere added a project: debug-info.
Herald added a reviewer: javed.absar.
Herald added a subscriber: hiraditya.
Normalize common kinds of DWARF sub-expressions to make debug info encoding a bit more compact:
1. `DW_OP_constu [X < 32]` -> `DW_OP_litX`
2. `DW_OP_constu [all ones]` -> `DW_OP_lit0, DW_OP_not`
Addresses Adrian's comments in https://reviews.llvm.org/D48676.
Repository:
rL LLVM
https://reviews.llvm.org/D51640
Files:
llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
llvm/test/DebugInfo/ARM/PR26163.ll
llvm/test/DebugInfo/ARM/split-complex.ll
llvm/test/DebugInfo/Generic/incorrect-variable-debugloc1.ll
llvm/test/DebugInfo/X86/PR26148.ll
llvm/test/DebugInfo/X86/constant-loclist.ll
llvm/test/DebugInfo/X86/partial-constant.ll
llvm/test/DebugInfo/X86/pieces-4.ll
llvm/test/DebugInfo/X86/stack-value-piece.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51640.163841.patch
Type: text/x-patch
Size: 8315 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180904/cc6125e5/attachment.bin>
More information about the llvm-commits
mailing list