From 5d22e9d2a5167ee652b757191b8b1432d59a7ef2 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 15 Apr 2026 14:33:21 -0400 Subject: [PATCH] jay: allow predication of pure-flag instrs i.e. compares Signed-off-by: Alyssa Rosenzweig Part-of: --- src/intel/compiler/jay/jay_validate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/compiler/jay/jay_validate.c b/src/intel/compiler/jay/jay_validate.c index 7a3a6953fb7..9f5b0e76424 100644 --- a/src/intel/compiler/jay/jay_validate.c +++ b/src/intel/compiler/jay/jay_validate.c @@ -214,7 +214,8 @@ validate_inst(struct validate_state *validate, jay_inst *I) CHECK(num_srcs >= I->predication); if (jay_inst_has_default(I)) { - CHECK(jay_inst_get_default(I)->file == I->dst.file); + jay_def dst = jay_is_null(I->dst) ? I->cond_flag : I->dst; + CHECK(jay_inst_get_default(I)->file == dst.file); } CHECK(jay_is_flag(*jay_inst_get_predicate(I)));