[all-commits] [llvm/llvm-project] 73547b: [mlir][SymbolTable] Small optimization to walking ...
River Riddle via All-commits
all-commits at lists.llvm.org
Wed Oct 28 22:05:21 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 73547b08de59d1be0e65d8dbc989e9c186295fcd
https://github.com/llvm/llvm-project/commit/73547b08de59d1be0e65d8dbc989e9c186295fcd
Author: River Riddle <riddleriver at gmail.com>
Date: 2020-10-28 (Wed, 28 Oct 2020)
Changed paths:
M mlir/include/mlir/IR/Attributes.h
M mlir/lib/IR/SymbolTable.cpp
Log Message:
-----------
[mlir][SymbolTable] Small optimization to walking symbol references
* Check region count for unknown symbol tables first, as it is a faster check
* Add an accessor to MutableDictionaryAttr to get the internal dictionary without creating a new one if it is empty. This avoids an otherwise unnecessary lookup of an MLIRContext.
More information about the All-commits
mailing list