[PATCH] D32920: Don't add DBG_VALUE instructions for static allocas in dbg.declare
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 5 15:55:21 PDT 2017
aprantl added a comment.
I totally understand that it doesn't need to be tracked in the MMI table and in a DEBUG_VALUE, my question was that it sounded to my like you implied that the DWARF backend actively ignores DEBUG_VALUEs pointing to static allocas which I found really surprising (as there are legitimate reasons for allocas to be described by a DEBUG_VALUE) .
For example:
void f(int i) {
int x = i;
if (x == 0)
// DEBUG_VALUE x, const 0
return bar();
// DEBUG_VALUE x, FI-1
baz(&x);
}
https://reviews.llvm.org/D32920
More information about the llvm-commits
mailing list