From 8aeeaa4d85b63b9a403877addd2f18e1f08ba7ec Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 13 Apr 2026 15:05:54 -0400 Subject: [PATCH] jay: marginally improve send splitting heuristic Instrs: 2810815 -> 2809726 (-0.04%); split: -0.07%, +0.04% CodeSize: 45101440 -> 45085472 (-0.04%); split: -0.07%, +0.04% Signed-off-by: Alyssa Rosenzweig Part-of: --- src/intel/compiler/jay/jay_builder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/jay/jay_builder.h b/src/intel/compiler/jay/jay_builder.h index a65b826e9f2..b6460385054 100644 --- a/src/intel/compiler/jay/jay_builder.h +++ b/src/intel/compiler/jay/jay_builder.h @@ -527,7 +527,7 @@ _jay_SEND(jay_builder *b, const struct jayb_send_params p) * TODO: Come up with a better heuristic. */ assert(info->type_0 == info->type_1); - unsigned split = !p.check_tdr ? DIV_ROUND_UP(p.nr_srcs, 2) : p.nr_srcs; + unsigned split = !p.check_tdr ? (p.nr_srcs / 2) : p.nr_srcs; I->src[2] = jay_collect_vectors(b, &p.srcs[0], split); I->src[3] = jay_collect_vectors(b, &p.srcs[split], p.nr_srcs - split); }