v3d: Implement a small immediates optimization, based on VC4's.
[mesa.git] / src / broadcom / compiler / vir.c
index 5a4bf80f93d497d93c899efeb74cb2be735d2a9a..b5539b6ef50b58d02de4dc7b33393e054aba0a7c 100644 (file)
@@ -1001,6 +1001,7 @@ vir_optimize(struct v3d_compile *c)
 
                 OPTPASS(vir_opt_copy_propagate);
                 OPTPASS(vir_opt_dead_code);
+                OPTPASS(vir_opt_small_immediates);
 
                 if (!progress)
                         break;