[PATCH] D51749: [GlobalISel] Lower dbg.declare into indirect DBG_VALUE
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 6 13:50:28 PDT 2018
aprantl added a comment.
Note that strictly speaking a dbg.declare is not 100% the same as an indirect DBG_VALUE. A dbg.declare declares a stack slot for a variable, and specifically has a lifetime valid for the entire lexical scope of that variable, whereas the lifetime of a DBG_VALUE only lasts until the next DBG_VALUE for the same variable, the end of the basic block (except where LiveDebugValues can prove it doesn't), or until the value the DBG_Value is pointing to is clobbered, whichever happens first.
Because of this the other instruction selectors enter dbg.declares into the MMI sidetable, which is a map of stack slots.
Repository:
rL LLVM
https://reviews.llvm.org/D51749
More information about the llvm-commits
mailing list