i965/vec4: Add parameter to skip doing constant propagation.
authorMatt Turner <mattst88@gmail.com>
Sun, 21 Dec 2014 01:37:09 +0000 (17:37 -0800)
committerMatt Turner <mattst88@gmail.com>
Mon, 29 Dec 2014 18:08:18 +0000 (10:08 -0800)
commitc855f49c99379cc65e5a91fe9297a6b961e09e1f
tree82c4a2d81c64b9e9e2fd0d0ed77f0cff1aadf691
parentbbdd3198a5f778ba55c037e4af86d88b06ca4e95
i965/vec4: Add parameter to skip doing constant propagation.

After CSEing some MOV ..., VF instructions we have code like

   mov tmp, [1F, 2F, 3F, 4F]VF
   mov r10, tmp
   mov r11, tmp
   ...
   use r10
   use r11

We want to copy propagate tmp into the uses of r10 and r11, but *not*
constant propagate the VF immediate into the uses of tmp.

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