This is an archive of the discontinued LLVM Phabricator instance.

[InstrRef][AArch64][4/4] Save variable locations over pseudo-inst expansion
AcceptedPublic

Authored by jmorse on Jun 18 2021, 5:05 AM.

Details

Reviewers
aprantl
Group Reviewers
debug-info
Summary

Various forms of aarch64 instructions are finalised in this pass, and involve the replacement of one instruction with another. That requires a call to substituteDebugValuesForInst to patch up the variable location information: deleted instructions need to be accounted for, so that instruction-referencing variable locations can find the new value.

The test covers the major elements that get expanded; however I haven't written a test covering each form of pcrel 'add' instruction to ensure it gets salvaged; is it acceptable to skip that?

Diff Detail

Event Timeline

jmorse created this revision.Jun 18 2021, 5:05 AM
jmorse requested review of this revision.Jun 18 2021, 5:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 18 2021, 5:06 AM
aprantl accepted this revision.Jun 25 2021, 12:19 PM
This revision is now accepted and ready to land.Jun 25 2021, 12:19 PM