-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LCSSA] Cache the loop exit blocks across recursive analysis (NFC) (#…
…101087) The computation of loop exit blocks recently showed up as a huge compile time cost for a large file. This computation was already being cached during an invocation of formLCSSAForInstructions, but can also be cached across callers formLCSSA and formLCSSARecursively (the latter was what was being invoked in the examined case). Since each of these functions has an external entry point invoked from other passes, doing so required refactoring each into a worker mechanism that takes a LoopExitBlocks map, and the externally callable version that declares the map. That way we can pass it down from the outermost formLCSSARecursively. This reduced the time spent in the LCSSA pass from ~110s to ~1s.
- Loading branch information
1 parent
e59c832
commit 273e74b
Showing
1 changed file
with
57 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters