freedreno/ir3: add experimental GCM pass
authorRob Clark <robdclark@gmail.com>
Mon, 29 Jan 2018 19:53:13 +0000 (14:53 -0500)
committerRob Clark <robdclark@gmail.com>
Sat, 10 Feb 2018 19:54:58 +0000 (14:54 -0500)
commit268ab05484379a35a54c14de9c111a52d338b2fd
treea9295a4af7de41d2f5cc104dd893682c2232ed7f
parent4c15c53d91dff8ec0573421e234940c99f8a54cb
freedreno/ir3: add experimental GCM pass

Generally seems to do worse on instruction count and register usage,
according to shader-db.  But shader-db also doesn't do a very good job
of weighting loop bodies, so that might not be totally valid.

So add an env variable to enable GCM pass for easier experimentation.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_nir.c