nir/i965: add before ffma algebraic opts
This shuffles constants down in the reverse of what the previous patch does and applies some simpilifications that may be made possible from doing so. Shader-db results BDW: total instructions in shared programs: 12980814 -> 12977822 (-0.02%) instructions in affected programs: 281889 -> 278897 (-1.06%) helped: 1231 HURT: 128 total cycles in shared programs: 246562852 -> 246567288 (0.00%) cycles in affected programs: 11271524 -> 11275960 (0.04%) helped: 1630 HURT: 1378 V2: mark float opts as inexact Reviewed-by: Elie Tournier <elie.tournier@collabora.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:

committed by
Timothy Arceri

parent
fb2269fed1
commit
7a7ee40c2d
@@ -605,6 +605,12 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler,
|
||||
|
||||
UNUSED bool progress; /* Written by OPT */
|
||||
|
||||
|
||||
do {
|
||||
progress = false;
|
||||
OPT(nir_opt_algebraic_before_ffma);
|
||||
} while (progress);
|
||||
|
||||
nir = nir_optimize(nir, compiler, is_scalar);
|
||||
|
||||
if (devinfo->gen >= 6) {
|
||||
|
Reference in New Issue
Block a user