i965/fs: Reset reg_from when we can't coalesce.
authorMatt Turner <mattst88@gmail.com>
Wed, 9 Apr 2014 21:04:10 +0000 (14:04 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 11 Apr 2014 22:27:46 +0000 (15:27 -0700)
commit509b2a652305836947bc59bc07616f71cc202c5a
treef1d16f8256b66deabeaf6c3218e13e52de2c0a50
parent7e034a8d778a918854c4b4d5cbe205f1f31e7ece
i965/fs: Reset reg_from when we can't coalesce.

Not setting this would prevented coalescing after a failed attempt if
the sources for both MOVs were the same.

total instructions in shared programs: 1654531 -> 1650224 (-0.26%)
instructions in affected programs:     423167 -> 418860 (-1.02%)
GAINED:                                2
LOST:                                  0

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp