nir/algebraic: allow swizzle in nir_algebraic replace expression
authorJonathan Marek <jonathan@marek.ca>
Fri, 21 Jun 2019 01:23:53 +0000 (21:23 -0400)
committerJonathan Marek <jonathan@marek.ca>
Wed, 24 Jul 2019 21:36:21 +0000 (17:36 -0400)
commit5a4e71c082886810504ecfa329fb57050acc623f
tree68628812a2966bc2fab49067b5e3db9144536278
parentb4f476867238a5ce288b9295e9ec38250493f2c1
nir/algebraic: allow swizzle in nir_algebraic replace expression

This is to allow optimizations in nir_opt_algebraic not otherwise possible

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Acked-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/nir_algebraic.py
src/compiler/nir/nir_opt_algebraic.py
src/compiler/nir/nir_search.c
src/compiler/nir/nir_search.h