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

Cherry-pick some recent bug-fixes into 17.0.1 #8107

Merged
merged 3 commits into from
Feb 19, 2024

Conversation

abadams
Copy link
Member

@abadams abadams commented Feb 19, 2024

No description provided.

When you rfactor an update definition, the new update definition must
use all the pure vars of the Func, even though the one you're rfactoring
may not have used them all.

We also want to preserve any scheduling already done to the pure vars,
so we want to preserve the dims list and splits list from the original
definition.

The code accounted for this by checking the dims list for any missing
pure vars and adding them at the end (just before Var::outermost()), but
this didn't account for the fact that they may no longer exist in the
dims list due to splits that didn't reuse the outer name. In these
circumstances we could end up with too many pure loops. E.g. if x has
been split into xo and xi, then the code was adding a loop for x even
though there were already loops for xo and xi, which of course produces
garbage output.

This PR instead just checks which pure vars are actually used in the
update definition up front, and then uses that to tell which ones should
be added.

Fixes #7890
* Fix reduce_expr_modulo of vector in Solve.cpp

* Fix test
@steven-johnson
Copy link
Contributor

Failures are addressed by #8106

@steven-johnson steven-johnson merged commit d15325e into release/17.x Feb 19, 2024
9 of 11 checks passed
@steven-johnson steven-johnson deleted the abadams/17.0.1 branch February 19, 2024 21:11
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