This is an archive of the discontinued LLVM Phabricator instance.

[C++20][Modules] Improve efficiency of isModuleParition method.
ClosedPublic

Authored by iains on Mar 1 2022, 12:47 PM.

Details

Summary

The original implementation of this used the presence of a ":" in the module
name as the key, but since we now generate modules with the correct kind, we
can just test that.

Diff Detail

Event Timeline

iains created this revision.Mar 1 2022, 12:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2022, 12:47 PM
Herald added a subscriber: dexonsmith. · View Herald Transcript
iains published this revision for review.Mar 1 2022, 12:48 PM
iains added reviewers: urnathan, ChuanqiXu.

This should improve the efficiency in the demangler use-case.

Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2022, 12:49 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ChuanqiXu accepted this revision.Mar 1 2022, 6:16 PM

LGTM.

This revision is now accepted and ready to land.Mar 1 2022, 6:16 PM