i965/vec4: Add pass to gather constants into a vector-float MOV.
authorMatt Turner <mattst88@gmail.com>
Sat, 20 Dec 2014 19:50:31 +0000 (11:50 -0800)
committerMatt Turner <mattst88@gmail.com>
Mon, 29 Dec 2014 18:08:18 +0000 (10:08 -0800)
commit44573458bdc52acc304fb75d6df502312b8e149c
treee048aa005f92dd79a277098712b11dda44c61c5a
parent7bc6e455e231076bfac6c678c375ea4aca94ebf0
i965/vec4: Add pass to gather constants into a vector-float MOV.

Currently only handles consecutive instructions with the same
destination that collectively write all channels.

total instructions in shared programs: 5879798 -> 5869011 (-0.18%)
instructions in affected programs:     465236 -> 454449 (-2.32%)

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