[Mesa-dev] [PATCH] nir/opt_if: Remove unneeded phis if we make progress

2018-06-26 Thread Samuel Iglesias Gonsálvez
Thanks a lot for fixing this, Reviewed-by: Samuel Iglesias Gonsálvez Sam On 26/06/18 01:47, Jason Ekstrand wrote: > Now that SSA values can be derefs and they have special rules, we have > to be a bit more careful about our LCSSA phis. In particular, we need > to clean up in case LCSSA ended u

[Mesa-dev] [PATCH] nir/opt_if: Remove unneeded phis if we make progress

2018-06-25 Thread Jason Ekstrand
Now that SSA values can be derefs and they have special rules, we have to be a bit more careful about our LCSSA phis. In particular, we need to clean up in case LCSSA ended up creating a phi node for a deref. This fixes validation issues with some Vulkan CTS tests with the new deref instructions.