This is an archive of the discontinued LLVM Phabricator instance.

[DXILBitcodeWriter] Don't create a new abbrev per MDString
ClosedPublic

Authored by bogner on Aug 21 2023, 10:30 AM.

Details

Summary

We were running out of abbrevs and crashing if there were more than 20
something strings in metadata, which turned out to be a bug where we
created an abbrev every time we emitted a string rather than just one
for the string table.

Diff Detail

Event Timeline

bogner created this revision.Aug 21 2023, 10:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 10:30 AM
bogner requested review of this revision.Aug 21 2023, 10:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 10:30 AM
beanz accepted this revision.Aug 21 2023, 10:33 AM

Hah... yea, good fix 😄

This revision is now accepted and ready to land.Aug 21 2023, 10:33 AM
This revision was automatically updated to reflect the committed changes.