aco: add NUW flag

Graphics / Mesa 3D Graphics Library / Mesa - Rhys Perry [gmail.com] - 21 July 2020 18:25 UTC

This (combined with a pass to actually set the corresponding NIR flags) should help fix a lot of the regressions from the SMEM addition combining change.

fossil-db (Navi): Totals from 12 (0.01% of 135946) affected shaders: CodeSize: 12376 -> 12304 (-0.58%) Instrs: 2436 -> 2422 (-0.57%)
VMEM: 1105 -> 1096 (-0.81%) SClause: 133 -> 130 (-2.26%)

2694a34aa2c aco: add NUW flag
src/amd/compiler/aco_builder_h.py | 8 ++++++++
src/amd/compiler/aco_instruction_selection.cpp | 11 +++++++----
src/amd/compiler/aco_ir.h | 15 ++++++++++++++-
src/amd/compiler/aco_opt_value_numbering.cpp | 6 ++++++
src/amd/compiler/aco_optimizer.cpp | 5 ++---
src/amd/compiler/aco_print_ir.cpp | 2 ++
6 files changed, 39 insertions(+), 8 deletions(-)

Upstream: cgit.freedesktop.org


  • Share