nir/opt_intrinsics: Rework progress
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 Aug 2017 19:18:32 +0000 (12:18 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 25 Oct 2017 23:14:09 +0000 (16:14 -0700)
commite0519294c7f416beb726d0e1463520f3166637d6
treefacd74d193f75beee9b073d7dda201e89b30dfb3
parentd24311b7b55d1dec1ce85e046619d05fa96ed99e
nir/opt_intrinsics: Rework progress

This commit fixes two issues:  First, we were returning false regardless
of whether or not the function made progress.  Second, we were calling
nir_metadata_preserve far more often than needed; we only need to call
it once per impl.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/nir/nir_opt_intrinsics.c