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: Handle affine.apply in lower-affine #2849

Merged
merged 38 commits into from
Jul 8, 2024

Conversation

superlopuh
Copy link
Member

We need this in the generic to loops lowering when not all the arguments are streamed

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

codecov bot commented Jul 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.87%. Comparing base (3ec488a) to head (4bf4526).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2849      +/-   ##
==========================================
- Coverage   89.87%   89.87%   -0.01%     
==========================================
  Files         399      399              
  Lines       49776    49822      +46     
  Branches     7662     7671       +9     
==========================================
+ Hits        44737    44778      +41     
- Misses       3834     3836       +2     
- Partials     1205     1208       +3     

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

Comment on lines 52 to 53
// CHECK-NEXT: %apply_res_1 = arith.muli %apply_dim, %apply_res : index
// CHECK-NEXT: %apply_res_2 = arith.addi %apply_sym, %apply_res_1 : index
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to be a bug. apply_dim and apply_sym should be switched since s0 binds to apply_sym and d0 to apply_dim.

Copy link
Member Author

Choose a reason for hiding this comment

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

nice catch! I'll take a look

Copy link
Contributor

@zero9178 zero9178 left a comment

Choose a reason for hiding this comment

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

LGTM!

(Side note. Unless we get variables in filecheck, I am starting to think it is much much better to hardode SSA values... The %{{.*}} everywhere makes it hard to review tests and would not have cought errors like the one in the first commit)

@superlopuh
Copy link
Member Author

I agree completely, I think the key here might be name hints, I'll look into it a bit more in subsequent PRs

@superlopuh superlopuh force-pushed the sasha/affine/apply-custom-syntax branch from 5b7cc5c to 5a18a3a Compare July 7, 2024 12:53
Base automatically changed from sasha/affine/apply-custom-syntax to main July 8, 2024 08:44
@superlopuh superlopuh merged commit 4786454 into main Jul 8, 2024
10 checks passed
@superlopuh superlopuh deleted the sasha/riscv/lower-affine-apply branch July 8, 2024 08:49
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