mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
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:
parent
b46d677aab
commit
9b423bfe94
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue