i965/fs: Move constant propagation to the same codebase as copy prop.
authorEric Anholt <eric@anholt.net>
Fri, 21 Sep 2012 11:11:54 +0000 (13:11 +0200)
committerEric Anholt <eric@anholt.net>
Mon, 8 Oct 2012 15:50:38 +0000 (08:50 -0700)
commitfb5bf03a2092159166229eacf57c71587f762c57
tree4d20e67362642dc845518ee7a1c304a56271a235
parent098acf6c84333edbb7b1228545e4bdb2572ee0cd
i965/fs: Move constant propagation to the same codebase as copy prop.

This means that we don't get constant prop across into the first block after a
BRW_OPCODE_IF or a BRW_OPCODE_DO, but we have hope for properly doing it
across control flow at some point.  More importantly, with the next commit it
will help avoid O(n^2) with instruction count runtime for shaders that have
many constant moves.

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