jay: avoid bogus copyprop with cmods

fixes dEQP-VK.sparse_resources.shader_intrinsics.3d_sparse_fetch.r16.503_137_3

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41872>
This commit is contained in:
Alyssa Rosenzweig 2026-06-02 10:32:03 -04:00 committed by Marge Bot
parent 65697d6438
commit 16927d537c

View file

@ -348,6 +348,8 @@ propagate_backwards(jay_function *f)
if (use->type ==
(flag ? JAY_TYPE_U1 : canonicalize_for_bit_compare(I->type)) &&
I->op != JAY_OPCODE_PHI_DST &&
jay_is_null(I->cond_flag) &&
!I->predication &&
use->op == JAY_OPCODE_MOV &&
use->dst.file != J_ADDRESS &&
(!jay_is_flag(use->dst) ||