[PATCH] D59431: [DebugInfo] Terminate constant-value location-list ranges at the end of basic blocks

Greg Bedwell via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 21 05:34:40 PDT 2019


gbedwell added a comment.

In D59431#1436497 <https://reviews.llvm.org/D59431#1436497>, @aprantl wrote:

> "at the start of compilation" really means in mem2reg, at least for Clang. As you pointed out, there is no way to preserve the dbg.value in the exit block in mem2reg without introducing an phi node, but doing so would change codegen, which is not an option.


Without wanting to stray too far off the topic at hand, this is the sort of thing we could consider doing if we had a dedicated -Og mode (and presumably a corresponding optdebug IR attribute akin to optsize/minsize).  FWIW I'm going to organise a roundtable at EuroLLVM to try and kick off some discussion in that area, although obviously I'll reflect everything of importance back to the list for those who aren't able to attend.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59431/new/

https://reviews.llvm.org/D59431





More information about the llvm-commits mailing list