i965/fs: Recognize nop-MOV instructions early.
authorMatt Turner <mattst88@gmail.com>
Wed, 16 Apr 2014 01:15:59 +0000 (18:15 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 18 Apr 2014 16:16:19 +0000 (09:16 -0700)
commita975b2f55cd40a0ca53b72a17b05c0de08254f6b
treef93e7ef9a0ea938d2af55d627b1f5a573c69774e
parentef6127ff690031e0eec9eb9ee959cede542ad244
i965/fs: Recognize nop-MOV instructions early.

And avoid rewriting other instructions unnecessarily. Removes a few
self-moves we weren't able to handle because they were components of a
large VGRF.

instructions in affected programs:     830 -> 826 (-0.48%)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp