This is an archive of the discontinued LLVM Phabricator instance.

[CodeExtractor] Preserve entire scope of !DIVariables when moving them
ClosedPublic

Authored by fdeazeve on Dec 8 2022, 12:49 PM.

Details

Summary

When a dbg.value is moved into a new function, the corresponding
variable should have its entire scope chain reparented with the new
function. The current implementation drops the scope chain and replaces
it with a subprogram for the new function.

Depends on D139670

Diff Detail

Event Timeline

fdeazeve created this revision.Dec 8 2022, 12:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2022, 12:49 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
fdeazeve requested review of this revision.Dec 8 2022, 12:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2022, 12:49 PM
fdeazeve updated this revision to Diff 481429.Dec 8 2022, 1:06 PM

Updated stack

fdeazeve updated this revision to Diff 481430.Dec 8 2022, 1:07 PM

Fix scope

aprantl accepted this revision.Dec 8 2022, 2:58 PM
This revision is now accepted and ready to land.Dec 8 2022, 2:58 PM
This revision was landed with ongoing or failed builds.Dec 12 2022, 7:20 AM
This revision was automatically updated to reflect the committed changes.

MLIR failures unrelated to this