This is an archive of the discontinued LLVM Phabricator instance.

[StackColoring] Pre-commit of test case showing a debug invariance bug
ClosedPublic

Authored by bjope on Sep 14 2021, 6:28 AM.

Details

Summary

Having DBG_VALUE instructions referencing a stack slot while being outside
of the LIFETIME_START/LIFETIME_END markers for that stack slot is perhaps
not always ideal (from a debugging perspective), but it might happen during
codegen that we end up with such situations (e.g. positioning of the
DBG_VALUE instruction for a SDDbgOperand::FRAMEIX at ISel is a bit sloppy
in that context).

This patch adds a test case showing that StackColoring currently isn't
debug invariant, and that the position of DBG_VALUE instructions referencing
the stack slots might impact the decision making regarding stack slot reuse.

Diff Detail

Event Timeline

bjope created this revision.Sep 14 2021, 6:28 AM
bjope requested review of this revision.Sep 14 2021, 6:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2021, 6:28 AM
bjope added a comment.Sep 14 2021, 6:34 AM

Follow up commit with the fix is here: https://reviews.llvm.org/D109758

This revision was not accepted when it landed; it landed in state Needs Review.Sep 14 2021, 10:25 AM
This revision was automatically updated to reflect the committed changes.