-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Nested rfactor fix, update predicates as well as source. #3382
Conversation
Thanks for the contribution, @kazum @sgrechanik-h @derisavi @merrymercy please help to review this PR |
|
||
Array<Expr> new_pred = ir::UpdateArray(orig_pred, | ||
[&replacer] (const Expr& e) { return replacer.Mutate(e); }); | ||
|
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.
Why do you create an array?
Just use
Expr new_pred = replacer.Mutate(predicate)
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.
Thank you for the syntax, updated.
@merrymercy Are there any other changes you'd like to see? #3444 is also similar if you would please review that one as well, simply wraps the predicate in |
* Nested rfactor fix, update predicates as well as source. * Linter * Syntax fix.
* Nested rfactor fix, update predicates as well as source. * Linter * Syntax fix.
Replace reduction axis in predicates as well as the source code. Fixes: #3381