radv: make use of nir_lower_load_const_to_scalar()
This allows NIR to CSE more operations. LLVM does this also so the impact is limited, however doing this in NIR allows other opts to make progress. I didn't have a large vkpipeline-db to run this against but for radeonsi enabling this allowed some loops in Civilization Beyond Earth shaders to unroll.
Showing with 2 additions and 0 deletions