This is an archive of the discontinued LLVM Phabricator instance.

[mlir][llvm] Improve lookups in LLVM IR import (NFC).
ClosedPublic

Authored by gysit on May 10 2023, 11:49 PM.

Details

Summary

This revision uses contains in favor of count when
searching sets and maps. Additionally it uses find
instead of count and lookup, which avoids searching
some maps twice.

Diff Detail

Event Timeline

gysit created this revision.May 10 2023, 11:49 PM
Herald added a reviewer: dcaballe. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
gysit requested review of this revision.May 10 2023, 11:49 PM
This revision is now accepted and ready to land.May 11 2023, 12:06 AM
This revision was automatically updated to reflect the committed changes.