[PATCH] D66347: [DebugInfo] Test that LiveDebugVariables un-coalesces ranges over block boundaries

Jeremy Morse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 16 06:52:41 PDT 2019


jmorse created this revision.
jmorse added reviewers: aprantl, debug-info.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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 it out (the loop here [0]) and no tests failed. Thus, here's a test that checks LiveDebugVariables preserves DBG_VALUEs across block boundaries.

[0] https://github.com/llvm/llvm-project/blob/0c476111317cb7aaa9a3e9f75e1c35f83122ee26/llvm/lib/CodeGen/LiveDebugVariables.cpp#L1358


Repository:
  rL LLVM

https://reviews.llvm.org/D66347

Files:
  test/DebugInfo/MIR/X86/livedebugvariables-crossbb-interval.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66347.215584.patch
Type: text/x-patch
Size: 5913 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190816/957bd53b/attachment.bin>


More information about the llvm-commits mailing list