-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ssa refactor): Add loop unrolling pass (#1364)
* Start inlining pass * Get most of pass working * Finish function inlining pass * Add basic test * Address PR comments * Start block inlining * Add basic instruction simplification * Cargo fmt * Add comments * Add context object * Add push_instruction * Fix bug in inlining pass * Reorder loop unrolling pass * Get it working for most loops. Still missing loops with if inside * Rework entire pass from scratch * Finish loop unrolling * Add doc comment * Fix bad merge * Add test * Remove outdated parts of PR * Correctly handle loops with non-const indices * Address PR comments * Fix inlining bug and add a test for loops which fail to unroll * Update simplify_cfg to use new inline_block method * Remove now-unneeded test helper function
- Loading branch information
Showing
10 changed files
with
868 additions
and
93 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
Oops, something went wrong.