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

Fix infinite recursion in loop partitioning #7743

Merged
merged 3 commits into from
Aug 5, 2023
Merged

Fix infinite recursion in loop partitioning #7743

merged 3 commits into from
Aug 5, 2023

Conversation

abadams
Copy link
Member

@abadams abadams commented Aug 4, 2023

Fixes #7742

We weren't stripping the likely tags off the unlikely case on a
store/load predicate, resulting in infinite recursion.
Copy link
Contributor

@steven-johnson steven-johnson left a comment

Choose a reason for hiding this comment

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

LGTM pending green

f.split(x, x_outer, x_inner, 2, TailStrategy::PredicateStores).fuse(y, x_inner, y_x_inner_fused);
Pipeline p(f);
p.realize({100, 100});
return 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

the return 0 here should be removed

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, fixed

@abadams abadams merged commit f39576f into main Aug 5, 2023
3 checks passed
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
* Fix infinite recursion in partition loops

We weren't stripping the likely tags off the unlikely case on a
store/load predicate, resulting in infinite recursion.

* Add test

* Remove accidental return
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.

Fuse a split with PredicateStores leads to infinite simplication
3 participants