[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 14:33:34 PDT 2017


aprantl added a comment.

> An llvm.dbg.declare of a static alloca is always added to the 
>  MachineFunction dbg variable map, so these values are entirely
>  redundant.

Makes sense so far.

> They survive all the way through codegen to be ignored by DWARF emission.

Why are they ignored? Shouldn't they turn the variable location into a location list that has the FI from the MMI side table *and* the DEBUG_VALUE?


https://reviews.llvm.org/D32920





More information about the llvm-commits mailing list