Skip to content

nir/lower_locals_to_regs: Do an ad-hoc copy propagate on our generated MOV.

Emma Anholt requested to merge anholt/mesa:nir-locals-copyprop into main

I noticed the inefficiency in NIR-to-TGSI output while trying to debug a failure handling some arrays in r600. While this makes reading CTS shaders easier, the effect in the real world is pretty limited. From softpipe shader-db:

total instructions in shared programs: 2929840 -> 2929836 (<.01%)
instructions in affected programs: 118 -> 114 (-3.39%)
Edited by Emma Anholt

Merge request reports