Skip to content

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.

4 participants