-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Inline into extern function args during bounds inference #7261
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far, but every bot is failing...
@@ -199,6 +201,32 @@ bool is_fused_with_others(const vector<vector<Function>> &fused_groups, | |||
return false; | |||
} | |||
|
|||
class Inliner : public IRMutator { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: worth inserting a comment here about why this is necessary in addition to the previously existing inliner elsewhere
Failing the test python_correctness_realize_warnings because it only prints the warning twice instead of three times. I'm confused about why it would print it more than once. Any ideas? |
as long as it's at least once
…nto abadams/fix_7260
I just changed the test to assert that the warning is printed at least once, and that nothing else is printed. |
I guess the more interesting question here is how/why this PR caused any difference in that at all, whether or not the test made good sense in the first place... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Inline into extern function args during bounds inference Fixes halide#7260 * Run CSE once at the end * Actually recursively inline * clang-tidy * trigger buildbots * Make test invariant to the number of times the warning is printed as long as it's at least once Co-authored-by: Steven Johnson <srj@google.com>
Fixes #7260