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

Don't inject undef() in the simplifier #7791

Merged
merged 1 commit into from
Aug 22, 2023
Merged

Don't inject undef() in the simplifier #7791

merged 1 commit into from
Aug 22, 2023

Conversation

abadams
Copy link
Member

@abadams abadams commented Aug 21, 2023

We shouldn't be using undef() in the simplifier. This replaces a load with a constant false predicate with a zero instead.

I also added a guard around some dubious logic about out of bounds loads. out of bounds loads may be reachable if they have a false predicate, so I changed this simplification to only trigger if the load is unpredicated.

We shouldn't be using undef() in the simplifier. This replaces a load
with a constant false predicate with a zero instead.

I also added a guard around some dubious logic about out of bounds
loads. out of bounds loads may be reachable if they have a false
predicate, so I changed this simplification to only trigger if the load
is unpredicated.
@TH3CHARLie
Copy link
Contributor

This fixes #7786

@abadams abadams merged commit acc9413 into main Aug 22, 2023
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
We shouldn't be using undef() in the simplifier. This replaces a load
with a constant false predicate with a zero instead.

I also added a guard around some dubious logic about out of bounds
loads. out of bounds loads may be reachable if they have a false
predicate, so I changed this simplification to only trigger if the load
is unpredicated.
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.

3 participants