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

Various tweaks to numeric optimizations found while looking at programs. #18765

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

stellaraccident
Copy link
Collaborator

@stellaraccident stellaraccident commented Oct 12, 2024

  • Expands affine.apply ops at the program level. These get introduced from various places that should possibly be eliminated at this level. For now expanding them gets the job done, making the program transformation friendly again.
  • Fixes a multi-use issue in i64->index promotion.
  • Adds a pattern to fold trunc of an index cast.
  • Uses a conservative limit to bound all dynamic dims at the torch level, even when coming to us as unbounded.
  • Implements analysis interfaces on util.align.

@benvanik
Copy link
Collaborator

image

@stellaraccident stellaraccident force-pushed the users/stella/numeric_opt_hitlist branch from 85ff8a8 to af37991 Compare October 16, 2024 22:07
* Expands affine.apply ops at the program level. These get introduced from various places that should possibly be eliminated at this level. For now expanding them gets the job done, making the program transformation friendly again.
* Fixes a multi-use issue in i64->index promotion.
* Adds a pattern to fold trunc of an index cast.
* Uses a conservative limit to bound all dynamic dims at the torch level, even when coming to us as unbounded.

Signed-off-by: Stella Laurenzo <[email protected]>
@stellaraccident stellaraccident force-pushed the users/stella/numeric_opt_hitlist branch from 12905cb to 7aa185e Compare October 17, 2024 00:29
@stellaraccident stellaraccident marked this pull request as ready for review October 17, 2024 00:29
Signed-off-by: Stella Laurenzo <[email protected]>
@stellaraccident stellaraccident merged commit 1500641 into main Oct 17, 2024
39 checks passed
@stellaraccident stellaraccident deleted the users/stella/numeric_opt_hitlist branch October 17, 2024 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants