Skip to content

Conversation

@abadams
Copy link
Member

@abadams abadams commented Aug 4, 2023

Fixes #7742

abadams added 2 commits August 4, 2023 12:03
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
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

4 participants