intel: Don't propagate conditional modifiers if a UD source is negated
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 8 Oct 2018 17:22:35 +0000 (12:22 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 10 Oct 2018 18:13:12 +0000 (13:13 -0500)
commit4ba445e0117b29c31b030feb6e0f421a5ceb03e5
tree5191e422be4ad6afc639bfffdfbc873c7113407c
parent328d4d080bce128ff422fbfbd7271ef4ede38320
intel: Don't propagate conditional modifiers if a UD source is negated

This fixes a bug uncovered by my NIR integer division by constant
optimization series.

Fixes: 19f9cb72c8b "i965/fs: Add pass to propagate conditional..."
Fixes: 627f94b72e0 "i965/vec4: adding vec4_cmod_propagation..."
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_ir_fs.h
src/intel/compiler/brw_ir_vec4.h
src/intel/compiler/brw_reg.h
src/intel/compiler/brw_vec4.cpp