jay: reduce calloc to malloc when memsetting after

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41064>
This commit is contained in:
Alyssa Rosenzweig 2026-04-14 18:36:01 -04:00 committed by Marge Bot
parent b46d677aab
commit 9b423bfe94

View file

@ -1261,7 +1261,7 @@ construct_phi_webs(struct phi_web_node *web, jay_function *f)
static void
insert_parallel_copies_for_phis(jay_function *f)
{
jay_reg *phi_dsts = calloc(f->ssa_alloc, sizeof(jay_reg));
jay_reg *phi_dsts = malloc(f->ssa_alloc * sizeof(jay_reg));
struct util_dynarray copies = UTIL_DYNARRAY_INIT;
memset(phi_dsts, 0xFF, sizeof(jay_reg) * f->ssa_alloc);