This is an archive of the discontinued LLVM Phabricator instance.

[GVNHoist] drop debug location according to the debug info guide
ClosedPublic

Authored by hiraditya on Mar 30 2022, 8:02 AM.

Details

Summary

According to the LLVM debug info update guide: https://llvm.org/docs/HowToUpdateDebugInfo.html, "Hoisting identical instructions which appear in several successor blocks into a predecessor block. In this case there is no single merged instruction. The rule for dropping locations applies".

Thanks to Yuanbo Li for reporting this.

Diff Detail

Event Timeline

hiraditya created this revision.Mar 30 2022, 8:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2022, 8:02 AM
hiraditya requested review of this revision.Mar 30 2022, 8:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2022, 8:02 AM
dblaikie accepted this revision.Mar 30 2022, 11:32 AM

Sounds about right to me.

This revision is now accepted and ready to land.Mar 30 2022, 11:32 AM
This revision was landed with ongoing or failed builds.Mar 30 2022, 8:18 PM
This revision was automatically updated to reflect the committed changes.