From f2f945c2b77e83bebdcc559e79aa400e693cd3d9 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sat, 2 Aug 2025 16:40:00 +0200 Subject: [PATCH] nak: run nir_opt_move nir_move_comparisons Totals: CodeSize: 914469536 -> 914055696 (-0.05%); split: -0.07%, +0.02% Number of GPRs: 3863818 -> 3866731 (+0.08%); split: -0.01%, +0.08% SLM Size: 841076 -> 840828 (-0.03%); split: -0.03%, +0.00% Static cycle count: 1073101189 -> 1059404451 (-1.28%); split: -1.39%, +0.11% Spills to memory: 57317 -> 54698 (-4.57%); split: -4.57%, +0.00% Fills from memory: 57317 -> 54698 (-4.57%); split: -4.57%, +0.00% Spills to reg: 67707 -> 57646 (-14.86%); split: -15.24%, +0.38% Fills from reg: 80456 -> 71960 (-10.56%); split: -10.75%, +0.20% Max warps/SM: 3672668 -> 3672244 (-0.01%); split: +0.00%, -0.01% Totals from 33585 (38.33% of 87622) affected shaders: CodeSize: 614909536 -> 614495696 (-0.07%); split: -0.10%, +0.03% Number of GPRs: 1771770 -> 1774683 (+0.16%); split: -0.01%, +0.18% SLM Size: 659824 -> 659576 (-0.04%); split: -0.04%, +0.00% Static cycle count: 994849091 -> 981152353 (-1.38%); split: -1.50%, +0.12% Spills to memory: 57317 -> 54698 (-4.57%); split: -4.57%, +0.00% Fills from memory: 57317 -> 54698 (-4.57%); split: -4.57%, +0.00% Spills to reg: 67372 -> 57311 (-14.93%); split: -15.32%, +0.39% Fills from reg: 80178 -> 71682 (-10.60%); split: -10.79%, +0.20% Max warps/SM: 1299808 -> 1299384 (-0.03%); split: +0.01%, -0.04% Reviewed-by: Mel Henning Part-of: --- src/nouveau/compiler/nak_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nouveau/compiler/nak_nir.c b/src/nouveau/compiler/nak_nir.c index 4216c129cb7..d4056dc3117 100644 --- a/src/nouveau/compiler/nak_nir.c +++ b/src/nouveau/compiler/nak_nir.c @@ -1127,7 +1127,7 @@ nak_postprocess_nir(nir_shader *nir, } } while (progress); - OPT(nir, nir_opt_move, nir_move_load_ubo); + OPT(nir, nir_opt_move, nir_move_comparisons | nir_move_load_ubo); if (nak->sm < 70) { const nir_split_conversions_options split_conv_opts = {