Open HodanPlodky opened 1 month ago
Attention: Patch coverage is 95.93496%
with 5 lines
in your changes missing coverage. Please review.
Project coverage is 88.95%. Comparing base (
5067b86
) to head (788bd0d
). Report is 15 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
vyper/venom/passes/loop_invariant_hosting.py | 95.00% | 3 Missing and 1 partial :warning: |
vyper/venom/analysis/loop_detection.py | 97.56% | 0 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
What I did
Loop invariant hoisting
How I did it
Implemented loop detection analysis and IR pass which. The detection is done via dfs. The pass detects which instruction are not dependent on instruction within the loop and if not then the instruction is hoisted to the basic block before the loop. This is done iteratively until there are no such instruction in any loop
How to verify it
Commit message
feat[venom]: Loop invariant hoisting
Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)
Description for the changelog
Cute Animal Picture