This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][MachineCombiner] Use MIMetadata to copy pcsections metadata to reassociated instructions.
ClosedPublic

Authored by dmgreen on Nov 16 2022, 3:14 AM.

Details

Summary

D134260/D138107 exposed that the MachineCombiner was not copying pcsections metadata where it should. This patch switches the MIBuild methods to use MIMetadata that can copy the debug loc and pcsections at the same time.

Diff Detail

Event Timeline

dmgreen created this revision.Nov 16 2022, 3:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 16 2022, 3:14 AM
dmgreen requested review of this revision.Nov 16 2022, 3:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 16 2022, 3:14 AM
melver accepted this revision.Nov 16 2022, 3:23 AM

LGTM. Thanks for the fix!

This revision is now accepted and ready to land.Nov 16 2022, 3:23 AM
kawashima-fj accepted this revision.Nov 16 2022, 3:38 AM

LGTM. Thanks.

Is your patch based on my D138107? If so, please make a patch based on the latest main branch and commit/push this patch first. D138107 will take time to land.

Thanks. This is on top of D134260, which I will commit now (once it gets past testing) and commit this on top. The rest in D138107 I will leave to you.

This revision was landed with ongoing or failed builds.Nov 16 2022, 5:23 AM
This revision was automatically updated to reflect the committed changes.