r600g/sb: fix constant propagation in gvn pass

Fixes the bug that prevented propagation of literals in some cases.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
This commit is contained in:
Vadim Girlin 2013-05-03 13:01:31 +04:00
parent 3c201a22ca
commit f92bd0958e

View file

@ -159,7 +159,8 @@ void gvn::process_alu_src_constants(node &n, value* &v) {
rp_kcache_tracker kc(sh);
kc.try_reserve(v->gvn_source->select);
if (v->gvn_source->is_kcache())
kc.try_reserve(v->gvn_source->select);
// don't propagate 3rd constant to the trans-only instruction
if (!n.is_alu_packed()) {