Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16053 from e-kayrakli/static-fast-follower-minimal
Add static analysis to avoid adding slow followers in some cases This PR adds a static analysis to detect whether zippered distributed arrays share the same domain and thus can leverage the fast follower optimization. This is a small part of what I attempted at #16001. This PR also rearranges the newly-added autoLocalAccess.cpp to make it more general purpose. Summary of changes: - Add `staticFastFollowerAnalysis` to `autoLocalAccess.cpp` - Do some refactor on that file: - Rename to `preNormalizeOptimizations.cpp` - Put function declarations in the beginning of the file - Add a function `doPreNormalizeArrayOptimizations` to handle automatic local access and fast follower analysis right before normalization. Although the main motivation for this PR was to reduce the compilation time overheads, in some of the benchmarks I have seen that clones removed by this PR to constitute only a small partion of those extra clones. #16001 gives an idea of what needs to be done to remove a larger number of copies, and I hope to revisit that effort soon. [Reviewed by @ronawho] Test: - [x] add a test to lock the behavior - [x] standard - [x] gasnet
- Loading branch information
Showing
34 changed files
with
295 additions
and
162 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
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
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
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
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
Oops, something went wrong.