Skip to content
Snippets Groups Projects
Commit d8e3edb7 authored by Faith Ekstrand's avatar Faith Ekstrand :speech_balloon:
Browse files

nir/deref: Support casts and ptr_as_array in comparisons


The code which constructs deref paths already gives you the path
starting at the nearest deref_cast or deref_var.  All we need to do for
casts is handle the case where the start of the path isn't a deref_var.
For ptr_as_array derefs, we just bail if we have any after the
divergence point between the two derefs.  We may be able to do better in
the future but this works for now.

Reviewed-by: default avatarAlejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: default avatarCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
parent a1c68851
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment