i965/fs: Don't emit null MOVs in CSE.
authorMatt Turner <mattst88@gmail.com>
Tue, 22 Oct 2013 22:40:08 +0000 (15:40 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 31 Oct 2013 02:49:27 +0000 (19:49 -0700)
commit219b43c612b2882e0bf82ac1a12ff073a42be6e1
treeb1a7abaeee0d10a86d75f7d5f58430001d163643
parenta93d54eb68f8c73ed65e4a7e861b810a9111c5a4
i965/fs: Don't emit null MOVs in CSE.

We'd like to CSE some instructions, like CMP, that often have null
destinations. Instead of replacing them with MOVs to null, just don't
emit the MOV.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_cse.cpp