This transforms the symbol lookups to O(1) from O(NM), greatly speeding up both passes. For a large MLIR module this shaved seconds off of the compilation time.
Depends On D89512
Paths
| Differential D89522
[mlir] Update SCCP and the Inliner to use SymbolTableCollection for symbol lookups ClosedPublic Authored by rriddle on Oct 15 2020, 7:17 PM.
Details Summary This transforms the symbol lookups to O(1) from O(NM), greatly speeding up both passes. For a large MLIR module this shaved seconds off of the compilation time. Depends On D89512
Diff Detail
Event TimelineHerald added subscribers: stephenneuendorffer, nicolasvasilache. · View Herald TranscriptOct 15 2020, 7:17 PM This revision is now accepted and ready to land.Oct 15 2020, 7:24 PM This revision was landed with ongoing or failed builds.Oct 16 2020, 12:09 PM Closed by commit rGa5ea60456c16: [mlir] Update SCCP and the Inliner to use SymbolTableCollection for symbol… (authored by rriddle). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 298712 mlir/include/mlir/Analysis/CallGraph.h
mlir/include/mlir/Interfaces/CallInterfaces.td
mlir/lib/Analysis/CallGraph.cpp
mlir/lib/Interfaces/CallInterfaces.cpp
mlir/lib/Transforms/Inliner.cpp
mlir/lib/Transforms/SCCP.cpp
|