i965: Only consider fixed_hw_reg in equals() if file is HW_REG/IMM.
authorMatt Turner <mattst88@gmail.com>
Tue, 18 Aug 2015 21:28:03 +0000 (14:28 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 28 Aug 2015 18:30:47 +0000 (11:30 -0700)
commit8765f1d7ddfb00dc5b202e4e679ebe640a547d50
tree911e862b6d8491fb0c9d4c3d05bd3451ee1364b3
parent2581fe931a48478123d8054ce7a291cffa851de9
i965: Only consider fixed_hw_reg in equals() if file is HW_REG/IMM.

Noticed when debugging things that lead to the next patch.

On G45 (and presumably ILK) this helps register coalescing:

total instructions in shared programs: 4077373 -> 4077340 (-0.00%)
instructions in affected programs:     43751 -> 43718 (-0.08%)
helped:                                52
HURT:                                  2

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp