i965/fs: Create and emit instructions in one step in opt_peephole_sel.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 3 Jun 2015 16:33:44 +0000 (19:33 +0300)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 9 Jun 2015 12:18:32 +0000 (15:18 +0300)
commit78f7c9edeb21ec4e7a4f96aa12b51cecc40e9688
treeb2a84fd295f3f2f432f45783e403fd568149e84c
parent74c2458ecf492f2dd344b4f6114b13a376f90657
i965/fs: Create and emit instructions in one step in opt_peephole_sel.

This simplifies opt_peephole_sel() slightly by emitting the SEL
instructions immediately after they are created, what makes the
sel_inst and mov_imm_inst arrays unnecessary and will make it possible
to get rid of the explicit inserts when the pass is migrated to the IR
builder.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp