[all-commits] [llvm/llvm-project] dc4781: [mlir][llvm] Improve lookups in LLVM IR import (NFC).
Tobias Gysi via All-commits
all-commits at lists.llvm.org
Thu May 11 05:44:58 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dc47813eb042f77e9950d7225f9bdbb4a85f78d2
https://github.com/llvm/llvm-project/commit/dc47813eb042f77e9950d7225f9bdbb4a85f78d2
Author: Tobias Gysi <tobias.gysi at nextsilicon.com>
Date: 2023-05-11 (Thu, 11 May 2023)
Changed paths:
M mlir/lib/Target/LLVMIR/ModuleImport.cpp
Log Message:
-----------
[mlir][llvm] Improve lookups in LLVM IR import (NFC).
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.
Reviewed By: Dinistro
Differential Revision: https://reviews.llvm.org/D150344
More information about the All-commits
mailing list