[DebugInfo] Shorten legacy [s|z]ext dwarf expressions
authorVedant Kumar <vsk@apple.com>
Wed, 21 Oct 2020 16:22:13 +0000 (09:22 -0700)
committerVedant Kumar <vsk@apple.com>
Wed, 28 Oct 2020 19:06:02 +0000 (12:06 -0700)
commit2ce36ebca544dd71075a7818ff4070da5667603b
tree17c7ec810e5722a8003fc5f233288e9a079aa055
parent99053462216cf835eb3ae063942c618d9609de87
[DebugInfo] Shorten legacy [s|z]ext dwarf expressions

Take advantage of the emitConstu helper to emit slightly shorter dwarf
expressions to implement legacy [s|z]ext operations.
llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
llvm/test/DebugInfo/X86/convert-debugloc.ll
llvm/test/DebugInfo/X86/convert-inlined.ll