diff --git a/src/imagination/pco/pco_opt.c b/src/imagination/pco/pco_opt.c index 69432cb8901..7847d8f567c 100644 --- a/src/imagination/pco/pco_opt.c +++ b/src/imagination/pco/pco_opt.c @@ -393,6 +393,12 @@ static inline bool try_fwd_prop_instr(pco_instr **writes, pco_instr *instr) /* TODO: types? */ *psrc = repl; + if (pco_instr_has_olchk(parent_instr) && + pco_instr_get_olchk(parent_instr)) { + assert(pco_instr_has_olchk(instr)); + pco_instr_set_olchk(instr, true); + } + progress = true; }