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

Pass ssa instead of stmt to visit_custom!() #169

Merged
merged 1 commit into from
Jun 28, 2023
Merged

Conversation

staticfloat
Copy link
Collaborator

We need to pass the SSA index, rather than the statement itself so that visit_custom!() can inspect the type of the statement under visitation.

This is more consistent with the transform!() API as well.

@oxinabox
Copy link
Member

This is a good change.

There are several tests which hack around this lack.
In the forward_diff_no_inf tests

They should be updated to not work around it.

@oxinabox
Copy link
Member

oxinabox commented Jun 28, 2023

Hmm this did not fix those tests. No matter, I will follow up on that later.
For this I am happy to merge as is.
I will mark the bad tests broken then rebase on top of that

We need to pass the SSA index, rather than the statement itself so that
`visit_custom!()` can inspect the type of the statement under
visitation.

This is more consistent with the `transform!()` API as well.
@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.02 🎉

Comparison is base (53a3ded) 22.96% compared to head (4076b60) 22.99%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #169      +/-   ##
==========================================
+ Coverage   22.96%   22.99%   +0.02%     
==========================================
  Files          27       27              
  Lines        2661     2662       +1     
==========================================
+ Hits          611      612       +1     
  Misses       2050     2050              
Impacted Files Coverage Δ
src/codegen/forward_demand.jl 44.95% <100.00%> (ø)
src/stage2/forward.jl 96.77% <100.00%> (+0.10%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@oxinabox oxinabox merged commit 4746542 into main Jun 28, 2023
6 checks passed
@oscardssmith oscardssmith deleted the sf/ssa_insteadof_stmt branch June 28, 2023 11:46
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