Skip to content

Consider *all* Exprs a func uses, not just the RHS, in Li2018#8326

Merged
abadams merged 1 commit intomainfrom
abadams/fix_8312
Jun 26, 2024
Merged

Consider *all* Exprs a func uses, not just the RHS, in Li2018#8326
abadams merged 1 commit intomainfrom
abadams/fix_8312

Conversation

@abadams
Copy link
Copy Markdown
Member

@abadams abadams commented Jun 25, 2024

Fixes #8312

Comment thread src/DerivativeUtils.cpp
bounds[it.first] = new_box;
}
}
class CollectExprs : public IRMutator {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Dumb question, but why not IRVisitor instead?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It doesn't have a method to override that catches all Exprs.

@steven-johnson steven-johnson self-requested a review June 26, 2024 00:00
@abadams abadams merged commit a4a7531 into main Jun 26, 2024
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.

Internal Error: Condition failed: bounds.find(*it) != bounds.end()

2 participants