Skip to content

aco: remove superflous (bool & exec) if the result comes from VOPC

Daniel Schürmann requested to merge daniel-schuermann/mesa:aco_vopc into master

This works in cases where the VOPC instruction was executed with the same exec mask. The code size regression in Deus Ex comes from bad RA decisions w.r.t. VCC.

 PERCENTAGE DELTAS    Shaders     SGPRs     VGPRs SpillSGPR SpillVGPR  PrivVGPR   Scratch  CodeSize  MaxWaves   VClause    Instrs
 battlefront2            4566     .         .         .         .         .         .       -0.01 %     .         .       -0.02 %
 britannia                465     .         .         .         .         .         .       -0.06 %     .         .       -0.08 %
 dark_souls_3           11975     .         .         .         .         .         .         .         .         .         .    
 detroit_become_human   19417     .         .         .         .         .         .       -0.04 %     .         .       -0.05 %
 deus_ex_md              8063     .         .         .         .         .         .        0.20 %     .         .       -0.10 %
 dirt4                   4030     .         .         .         .         .         .       -0.02 %     .         .       -0.03 %
 doom                    5775     .         .         .         .         .         .       -0.02 %     .         .       -0.02 %
 dota2                    985     .         .         .         .         .         .       -0.06 %     .         .       -0.07 %
 dow3                     294     .         .         .         .         .         .       -0.08 %     .         .       -0.11 %
 evilwithin_demo          740     .         .         .         .         .         .       -0.03 %     .         .       -0.06 %
 f12017                  5462     .         .         .         .         .         .       -0.02 %     .         .       -0.04 %
 gtav                    2955     .         .         .         .         .         .       -0.01 %     .         .       -0.02 %
 hitman                  3131     .         .         .         .         .         .       -0.05 %     .         .       -0.08 %
 madmax                   922     .         .         .         .         .         .       -0.06 %     .         .       -0.07 %
 nier                    7030    0.01 %     .         .         .         .         .       -0.13 %     .         .       -0.16 %
 redout                  2488     .         .         .         .         .         .         .         .         .         .    
 rottr                   8039   -0.01 %     .         .         .         .         .       -0.04 %     .         .       -0.06 %
 shadowofmordor          2055     .         .         .         .         .         .         .         .         .         .    
 small_subgroup           246     .         .         .         .         .         .         .         .         .         .    
 small_uber_subgroup       55     .         .         .         .         .         .       -0.04 %     .         .       -0.05 %
 sottr_demo              5620     .         .         .         .         .         .       -0.03 %     .         .       -0.04 %
 strange_brigade         1412     .         .         .         .         .         .       -0.05 %     .         .       -0.07 %
 subgroup                 327     .         .         .         .         .         .       -0.02 %     .         .       -0.02 %
 talos                    782     .         .         .         .         .         .         .         .         .       -0.01 %
 thewitness              3150     .         .         .         .         .         .         .         .         .         .    
 threekingdoms            887     .         .         .         .         .         .         .         .         .         .    
 uber_subgroup             55     .         .         .         .         .         .       -0.04 %     .         .       -0.06 %
 warhammer2              1871     .         .         .         .         .         .       -0.03 %     .         .       -0.03 %
 wolfenstein2_fp16       1022     .         .         .         .         .         .       -0.02 %     .         .       -0.03 %
 worldofwarships         8536     .         .         .         .         .         .       -0.02 %     .         .       -0.02 %
 youngblood               843     .         .         .         .         .         .       -0.03 %     .         .       -0.03 %
 youngblood_fp16          696     .         .         .         .         .         .       -0.03 %     .         .       -0.04 %
 --------------------------------------------------------------------------------------------------------------------------------
 All affected           20842     .         .         .         .         .         .       -0.05 %     .         .       -0.10 %
 --------------------------------------------------------------------------------------------------------------------------------
 Total                 113894     .         .         .         .         .         .       -0.02 %     .         .       -0.04 %

Merge request reports