nir: merge and extend nir_opt_move_comparisons and nir_opt_move_load_ubo

v2: add to series
v3: update Makefile.sources
v4: don't remove a comment and break statement
v4: use nir_can_move_instr

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Rhys Perry
2019-07-24 19:23:21 +01:00
committed by Rhys Perry
parent da8ed68aca
commit 7740149852
9 changed files with 37 additions and 153 deletions

View File

@@ -1360,7 +1360,7 @@ v3d_optimize_nir(struct nir_shader *s)
NIR_PASS(progress, s, nir_opt_undef);
} while (progress);
NIR_PASS(progress, s, nir_opt_move_load_ubo);
NIR_PASS(progress, s, nir_opt_move, nir_move_load_ubo);
}
static int