[all-commits] [llvm/llvm-project] f175ba: [mlir][AsmPrinter] Don't use string comparison whe...
River Riddle via All-commits
all-commits at lists.llvm.org
Fri Mar 5 12:47:28 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f175ba4a54d3dccfb691138c0c47ca862f03c7db
https://github.com/llvm/llvm-project/commit/f175ba4a54d3dccfb691138c0c47ca862f03c7db
Author: River Riddle <riddleriver at gmail.com>
Date: 2021-03-05 (Fri, 05 Mar 2021)
Changed paths:
M mlir/lib/IR/AsmPrinter.cpp
Log Message:
-----------
[mlir][AsmPrinter] Don't use string comparison when filtering list attributes
In .mlir modules with larges amounts of attributes, e.g. a function with a larger number of argument attributes, the string comparison filtering greatly affects compile time. This revision switches to using a SmallDenseSet in these situations, resulting in over a 10x speed up in some situations.
Differential Revision: https://reviews.llvm.org/D97980
More information about the All-commits
mailing list