i965/fs: Perform CSE on MAD instructions with final arguments switched.
authorMatt Turner <mattst88@gmail.com>
Sun, 26 Oct 2014 17:08:40 +0000 (10:08 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 30 Oct 2014 04:35:46 +0000 (21:35 -0700)
commitb65bd9583b9fe0080b5664df2a80d2084499e3c2
treeb08a3b18307668a98c48258f594f7056ede2edc2
parentd056863b3c535aeebfe5fcfc9468eb33a06ddb60
i965/fs: Perform CSE on MAD instructions with final arguments switched.

Multiplication is commutative.

instructions in affected programs:     48314 -> 47954 (-0.75%)

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