aco: Improve WQM when using SCC
Add some code to the optimizer which helps guide the register allocator to make fewer copies of the SCC.
fossil db results on Navi 10:
PERCENTAGE DELTAS Shaders SGPRs CodeSize Instrs Cycles VMEM SMEM SClause Copies Branches
assassins_creed_origins 2104 . . . . . . . . .
battlefront2 4568 . . . . . . . . .
britannia 465 . . . . . . . . .
dark_souls_1_remastered 4249 . -0.00% -0.01% -0.00% . . . -0.09% .
dark_souls_2_sotfs 6876 . . . . . . . . .
dark_souls_3 8912 . +0.00% +0.00% +0.00% +0.01% . . +0.01% .
death_stranding 1467 . -0.04% -0.05% -0.05% -0.00% . . -0.63% .
detroit_become_human 19959 . -0.13% -0.17% -1.17% -0.03% -0.00% +0.00% -1.81% +0.03%
deus_ex_md 8063 . -0.00% -0.00% -0.00% . . . -0.01% .
dirt4 4030 . . . . . . . . .
doom_2016 2963 . . . . . . . . .
doom_eternal 1211 -0.04% -0.23% -0.29% -0.44% -0.01% +0.02% . -2.82% .
dota2 1015 . . . . . . . . .
dow3 280 . -0.01% -0.01% -0.01% . . . -0.10% .
evilwithin_demo 740 . . . . . . . . .
f12017 5503 . . . . . . . . .
gtav 2987 . -0.00% -0.00% -0.00% . -0.00% . -0.07% .
hitman 2785 . -0.00% -0.00% -0.00% . . . -0.01% .
madmax 948 . . . . . . . . .
nier 5492 . +0.00% +0.00% +0.00% . . . +0.00% .
parallel-rdp/small_subgroup 246 . . . . . . . . .
parallel-rdp/small_uber_subgroup 55 . . . . . . . . .
parallel-rdp/subgroup 327 . . . . . . . . .
parallel-rdp/uber_subgroup 55 . . . . . . . . .
rdr2 3888 -0.00% -0.01% -0.01% -0.01% +0.00% . -0.01% -0.13% .
redout 2509 . -0.00% -0.00% -0.00% . . . -0.01% .
rottr 8120 . . . . +0.00% . . . .
sottr_demo 5705 . -0.00% -0.00% -0.00% +0.00% . . -0.00% .
strange_brigade 1417 -0.11% -0.09% -0.12% -0.12% -0.03% . . -1.54% .
talos 794 . . . . . . . . .
thewitness 3150 . . . . . . . . .
threekingdoms 844 . . . . . . . . .
tomb_raider 16230 . . . . . . . . .
warhammer2 1803 . . . . . . . . .
wolfenstein2_fp16 1012 . -0.06% -0.07% -0.13% . . . -0.88% +0.07%
worldofwarships 5590 . . . . . . . . .
youngblood 843 . -0.03% -0.03% -0.06% . . . -0.40% .
youngblood_fp16 682 . -0.07% -0.08% -0.14% -0.00% . . -1.00% +0.15%
----------------------------------------------------------------------------------------------------------------------------
All affected 7658 -0.01% -0.17% -0.21% -1.17% -0.16% -0.00% -0.00% -2.22% +0.04%
----------------------------------------------------------------------------------------------------------------------------
Total 137887 -0.00% -0.04% -0.05% -0.95% -0.00% -0.00% -0.00% -0.72% +0.02%