[PATCH] D102917: [LiveDebugVariables] Stop trimming locations of non-inlined vars

Orlando Cazalet-Hyams via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 21 07:08:49 PDT 2021


Orlando added a comment.

Hi @djtodoro,

It seems odd that not trimming the locations would have a positive impact on coverage since, IIUC, the only difference should be an increase in bytes covered outside the lexical scope (which is not counted towards "PC ranges covered" as of D85636 <https://reviews.llvm.org/D85636>).  I can see that in the tests you've updated in this patch some DBG_VALUEs are moved from just outside to inside the prologue. I have vague memories from my time working on D82129 <https://reviews.llvm.org/D82129> that LexicalScope::getRanges doesn't include the prologue in any range or something like that. I'm unsure whether that is intended behaviour or not - I would be interested if anyone knows? I think my solution in D82129 <https://reviews.llvm.org/D82129> was similarly to avoid trimming the location ranges for function-scoped variables.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102917



More information about the llvm-commits mailing list