Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loop invariant code motion #15

Open
dsharlet opened this issue Jan 1, 2024 · 0 comments
Open

Loop invariant code motion #15

dsharlet opened this issue Jan 1, 2024 · 0 comments
Labels
work ready This task is ready to be worked on

Comments

@dsharlet
Copy link
Owner

dsharlet commented Jan 1, 2024

Loop invariant code motion would be a useful optimization. A non-exhaustive list of cases we should handle:

  • let_stmt
  • crop_dim or slice_dim
  • If crop_buffer and slice_buffer have some dimensions that are loop invariant, we should split them up and move the loop invariant dimensions.
  • allocate (if moving it out of the loop doesn't increase peak memory usage).
@dsharlet dsharlet added the work ready This task is ready to be worked on label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work ready This task is ready to be worked on
Projects
None yet
Development

No branches or pull requests

1 participant