intel/fs: Fix fs_inst::flags_read for ANY/ALL predicates
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 24 Sep 2019 22:06:12 +0000 (17:06 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 27 Sep 2019 19:31:43 +0000 (19:31 +0000)
commit6c858b9a915b54d127a64ab817f111a82716a037
tree5871d6bfa3cc811ee0648068dd0c847862c3dd9d
parent2391ef778575832df2c754bbd98fd77c1f61ca7a
intel/fs: Fix fs_inst::flags_read for ANY/ALL predicates

Without this, we were DCEing flag writes because we didn't think their
results were used because we didn't understand that an ANY32 predicate
actually read all the flags.

Fixes: df1aec763eb "i965/fs: Define methods to calculate the flag..."
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/compiler/brw_fs.cpp