[DebugInfo] Test for variable range un-coalescing
authorJeremy Morse <jeremy.morse.llvm@gmail.com>
Mon, 19 Aug 2019 09:02:18 +0000 (09:02 +0000)
committerJeremy Morse <jeremy.morse.llvm@gmail.com>
Mon, 19 Aug 2019 09:02:18 +0000 (09:02 +0000)
commitb58ba8aae710cba925e3c59accde6695c1d40aa3
tree7dc6582e727b52a837bf9aa728650abf37a625f1
parentb8639f5c0fd82d4c29eb55590e1dfaf0a54dbb94
[DebugInfo] Test for variable range un-coalescing

LiveDebugVariables can coalesce ranges of variable locations across
multiple basic blocks. However when it recreates DBG_VALUE instructions,
it has to recreate one DBG_VALUE per block, otherwise it doesn't
represent the pre-regalloc layout and variable assignments can go missing.

This feature works -- however while mucking around with LiveDebugVariables,
I commented the relevant code it out and no tests failed. Thus, here's a
test that checks LiveDebugVariables preserves DBG_VALUEs across block
boundaries.

Differential Revision: https://reviews.llvm.org/D66347

llvm-svn: 369243
llvm/test/DebugInfo/MIR/X86/livedebugvars-crossbb-interval.mir [new file with mode: 0644]