i965/fs.h: Refactor tests for instructions modifying a register.
authorEric Anholt <eric@anholt.net>
Fri, 6 Jul 2012 22:06:59 +0000 (15:06 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 18 Jul 2012 19:30:06 +0000 (12:30 -0700)
commita454f8ec6df9334df42249be910cc2d57d913bff
tree61d0b7849330f097c642121f50afc23d7fe1c4d0
parentfc01376c50c15938f3b78431023ca3281304663d
i965/fs.h: Refactor tests for instructions modifying a register.

There's one instance of a potential behavior change: propagate_constants may
now propagate into a part of a vgrf after a different part of it was
overwritten by a send that returns multiple registers.  I don't think we ever
generate IR that meets that condition, but it's something to note if we bisect
behavior change to this.

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