From d549fb9c047d12524b927346ee67823160757c4e Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 7 May 2026 11:31:57 -0400 Subject: [PATCH] jay/lower_scoreboard: compact inst_exec_pipe Signed-off-by: Alyssa Rosenzweig Reviewed-by: Kenneth Graunke Part-of: --- src/intel/compiler/jay/jay_lower_scoreboard.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/intel/compiler/jay/jay_lower_scoreboard.c b/src/intel/compiler/jay/jay_lower_scoreboard.c index e05a44cbc79..1f7a2ae1f42 100644 --- a/src/intel/compiler/jay/jay_lower_scoreboard.c +++ b/src/intel/compiler/jay/jay_lower_scoreboard.c @@ -166,17 +166,11 @@ struct swsb_state { static enum tgl_pipe inst_exec_pipe(const struct intel_device_info *devinfo, jay_inst *I) { - if (I->op == JAY_OPCODE_SEND) { - return TGL_PIPE_NONE; - } else if (I->op == JAY_OPCODE_MATH) { - return TGL_PIPE_MATH; - } else if (I->type == JAY_TYPE_F64) { - return TGL_PIPE_LONG; - } else if (jay_type_is_any_float(I->type)) { - return TGL_PIPE_FLOAT; - } else { - return TGL_PIPE_INT; - } + return I->op == JAY_OPCODE_SEND ? TGL_PIPE_NONE : + I->op == JAY_OPCODE_MATH ? TGL_PIPE_MATH : + I->type == JAY_TYPE_F64 ? TGL_PIPE_LONG : + jay_type_is_any_float(I->type) ? TGL_PIPE_FLOAT : + TGL_PIPE_INT; } /**