-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Backport reverse_view to clean up some code #8486
Conversation
Side note: we should (again) examine if we can move to C++20 for Halide 20. (Google has been at C++20 for a while now. Are there still blockers at Adobe?) |
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 pending green
if (it->is_fuse()) { | ||
if (parallel.count(it->inner) || parallel.count(it->outer)) { | ||
parallel.insert(it->old_var); | ||
for (const auto &split : sched.splits()) { |
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.
This one is meant to be forward.
@abadams -- thanks for catching that! I went over all the other loops and they all have |
Nice cleanup. How complete is it? Did you already grep for all the rbegins/rends, or are there potentially more opportunities? |
I grepped for I should look for |
I made it through the new commit and didn't spot any issues. |
Vulkan failures are unrelated |
I found it very useful to backport
reverse_view
from C++20 for the sake of writing readable backwards loops. Here, I addreverse_view
toUtil.h
. This allows us to simplify code in a lot of places.