This is an archive of the discontinued LLVM Phabricator instance.

[Assignment Tracking][mem2reg] Remove overly defensive assert
ClosedPublic

Authored by Orlando on Feb 2 2023, 1:09 AM.

Details

Summary

The assert fires if a store to an alloca with no linked dbg.assigns has linked dbg.assigns. This can happen in the wild due to optimisations dropping the alloca's debug info so we shouldn't assert against it.

Diff Detail

Event Timeline

Orlando created this revision.Feb 2 2023, 1:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2023, 1:09 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
Orlando requested review of this revision.Feb 2 2023, 1:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2023, 1:09 AM
jryans accepted this revision.Feb 8 2023, 4:02 AM
jryans added a subscriber: jryans.

Makes sense to me, thanks!

This revision is now accepted and ready to land.Feb 8 2023, 4:02 AM