[Mesa-dev] [PATCH] i965/fs: Eliminate pointless self-moves.

Eric Anholt eric at anholt.net
Sun Nov 4 12:13:49 PST 2012


Matt Turner <mattst88 at gmail.com> writes:

> On Sat, Nov 3, 2012 at 8:44 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
>> We sometimes generate these, and they're so easy to remove...
>>
>> shader-db results:
>> total instructions in shared programs: 1394522 -> 1394500 (-0.00%)
>> instructions in affected programs:     6533 -> 6511 (-0.34%)

Thanks, this is better than the version I had done as a separate pass
and not sent out.

Reviewed-by: Eric Anholt <eric at anholt.net>

(Note that this relies on destinations never having negate, abs, smear,
etc. set.  I believe that's true, but I would also approve of the change
to explicitly test for those)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121104/e80e9100/attachment.pgp>


More information about the mesa-dev mailing list