This is an archive of the discontinued LLVM Phabricator instance.

[mlir][llvm] Drop cyclic dependencies during debug metadata import.
ClosedPublic

Authored by gysit on Jan 19 2023, 12:46 AM.

Details

Summary

This revision fixes the import of LLVM IR to handle debug metadata with
cyclic dependencies. It deletes the elements list of the composite type
if a cyclic dependency is detected. The revision is meant as a band aid
to avoid infinite recursion during the import of cyclic debug metadata.
Long term solutions are currently discussed here:
https://discourse.llvm.org/t/handling-cyclic-dependencies-in-debug-info/67526/4

Diff Detail

Event Timeline

gysit created this revision.Jan 19 2023, 12:46 AM
Herald added a project: Restricted Project. · View Herald Transcript
gysit requested review of this revision.Jan 19 2023, 12:46 AM

I think the title of the commit should reflect the band aid nature of it 🙂

gysit updated this revision to Diff 490434.Jan 19 2023, 2:55 AM

Update commit message.

gysit retitled this revision from [mlir][llvm] Handle the import of cyclic debug metadata. to [mlir][llvm] Drop cyclic dependencies during debug metadata import..Jan 19 2023, 2:56 AM
Dinistro accepted this revision.Jan 19 2023, 4:28 AM

LGTM!

This revision is now accepted and ready to land.Jan 19 2023, 4:28 AM