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

transformations: do not insert affine.apply ops when streaming #2758

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

superlopuh
Copy link
Member

We encode the affine map constraints in the streaming region setup, so we don't need the results of the affine.apply operation, unlike in the memref.load case. We could dce them away, but it feels better to not insert them in the first place.

@superlopuh superlopuh added the transformations Changes or adds a transformatio label Jun 20, 2024
@superlopuh superlopuh self-assigned this Jun 20, 2024
Copy link

codecov bot commented Jun 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.80%. Comparing base (f33372f) to head (8896dab).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2758   +/-   ##
=======================================
  Coverage   89.80%   89.80%           
=======================================
  Files         372      372           
  Lines       47805    47815   +10     
  Branches     7328     7330    +2     
=======================================
+ Hits        42930    42940   +10     
  Misses       3737     3737           
  Partials     1138     1138           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@PapyChacal PapyChacal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a big fan of "just DCE it later" myself when it just works, but LGTM!

NB: You can also just manually reuse DCE from your pass, i.e., don't complexify your pattern and still get your pass outputting simpler IR. Just mentioning the idea, again, this LGTM 🙂

@superlopuh
Copy link
Member Author

I completely agree, hence this PR :)

@superlopuh superlopuh merged commit 62f1851 into main Jun 21, 2024
10 checks passed
@superlopuh superlopuh deleted the sasha/memref_stream/indices-in-load branch June 21, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
transformations Changes or adds a transformatio
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants