i965: Optimize multiplication by -1 into a negated MOV.
authorMatt Turner <mattst88@gmail.com>
Thu, 5 Feb 2015 02:08:30 +0000 (18:08 -0800)
committerMatt Turner <mattst88@gmail.com>
Sun, 15 Feb 2015 20:24:10 +0000 (12:24 -0800)
commiteb47d0efd39d73d4388389d6c0ebe458160f79fa
treed90882074184d2aca6ae1d942b644e0eed34dff4
parente8a6f2ad65b03eac7c030b2cd4955a162739870b
i965: Optimize multiplication by -1 into a negated MOV.

instructions in affected programs:     968 -> 942 (-2.69%)
helped:                                4

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp