vc4: Allow merging instructions with SF set where the other writes NOP.
authorEric Anholt <eric@anholt.net>
Wed, 30 Nov 2016 19:25:09 +0000 (11:25 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 1 Dec 2016 03:58:09 +0000 (19:58 -0800)
commit98d7e874888db57841272402df4ce808c6271c99
treea88df27227067cabe6ee994142835023e20a9a7d
parent8e5ec33f1151dd82402bdfdaa4fff7c284e49a1c
vc4: Allow merging instructions with SF set where the other writes NOP.

I'm not sure how I managed to write the SF merge code
(7d8b79f398f18ed7bb48a74b1b82950e2f08abad) without allowing merges with
NOPs.  *Everything* we try to merge with will have a NOP on one or the
other side of the instruction, and that's why that commit showed no
benefit.

total instructions in shared programs: 99347 -> 95128 (-4.25%)
instructions in affected programs:     91906 -> 87687 (-4.59%)

3DMMES performance +2.57105% +/- 0.135276% (n=6,8)
src/gallium/drivers/vc4/vc4_qpu.c