i965/fs: Explicitly disallow CSE on predicated instructions.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 6 Aug 2013 00:12:12 +0000 (17:12 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 12 Aug 2013 20:12:57 +0000 (13:12 -0700)
commitd21f542aa1f8305ae9d149d97f987c81d2a81bca
tree8579dd0c50ba8f7962edc6380de826602dbd0a42
parent53d8cff63b30326eaaafe3019d00354d4775a622
i965/fs: Explicitly disallow CSE on predicated instructions.

The existing inst->is_partial_write() already disallows predicated
instructions, so this has no functional change.  However, it's worth
doing explicitly since the CSE pass does not consider the flag register.
This means it could blindly factor out operations that use the same
sources, but which have different condition codes set.

This prevents a regression in the next commit.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_cse.cpp