diff options
author | Boyan Ding <[email protected]> | 2015-08-21 21:42:45 +0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-08-27 23:33:49 -0700 |
commit | 86c57ebe0ed1acc98545746058862db7429412da (patch) | |
tree | e051d2c75ea2be56d454370587f7549b3bb807c3 /src | |
parent | 559b8842fa2d315f009a039e7bbc503c524de894 (diff) |
i965/nir: Make use of nir_opt_undef
Shader-db result on Ivy Bridge:
total instructions in shared programs: 145484 -> 145445 (-0.03%)
instructions in affected programs: 225 -> 186 (-17.33%)
helped: 5
HURT: 0
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Thomas Helland <[email protected]>
Signed-off-by: Boyan Ding <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_nir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c index 8c6d28a7cd8..247b223f2e2 100644 --- a/src/mesa/drivers/dri/i965/brw_nir.c +++ b/src/mesa/drivers/dri/i965/brw_nir.c @@ -63,6 +63,8 @@ nir_optimize(nir_shader *nir, bool is_scalar) nir_validate_shader(nir); progress |= nir_opt_remove_phis(nir); nir_validate_shader(nir); + progress |= nir_opt_undef(nir); + nir_validate_shader(nir); } while (progress); } |