st/nir: Move 64-bit lowering later
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 4 Mar 2019 23:02:39 +0000 (17:02 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 6 Mar 2019 17:24:57 +0000 (17:24 +0000)
commit9ab1b1d0227499b7ff6a61fdebe75693212a67f5
treed4893efdf252c51f7aa01b7c2c4d8b573c4a2116
parent656ace3dd85b2eb8c565383763a00d059519df4c
st/nir: Move 64-bit lowering later

Now that we have a loop unrolling cost function and loop unrolling isn't
going to kill us the moment we have a 64-bit op in a loop, we can go
ahead and move 64-bit lowering later.  This gives us the opportunity to
do more optimizations and actually let the full optimizer run even on
64-bit ops rather than hoping one round of opt_algebraic will fix
everything.  This substantially reduces both fp64 shader compile times
and the resulting code size.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/state_tracker/st_glsl_to_nir.cpp