From 5fb1ef4df98341976f03302aaf604cba3d5caa17 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Mon, 20 Apr 2026 14:15:38 -0700 Subject: [PATCH] fix global vmap baking determinism - eliminate dupes --- src/rdi_from_pdb/rdi_from_pdb.c | 2 +- src/rdi_make/rdi_make_local.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rdi_from_pdb/rdi_from_pdb.c b/src/rdi_from_pdb/rdi_from_pdb.c index fa5de982..d973f57d 100644 --- a/src/rdi_from_pdb/rdi_from_pdb.c +++ b/src/rdi_from_pdb/rdi_from_pdb.c @@ -3010,7 +3010,7 @@ p2r_convert(Arena *arena, P2R_ConvertParams *params) { for(NamespaceNode *n = all_namespace_slots[slot_idx]; n != 0; n = n->next) { - raddbg_log("%S%s\n", n->string, n->corresponds_to_scope ? " (is scope)" : n->type != 0 ? " (is type)" : ""); + // raddbg_log("%S%s\n", n->string, n->corresponds_to_scope ? " (is scope)" : n->type != 0 ? " (is type)" : ""); if(n->corresponds_to_scope || n->scope != 0 || n->type != 0) { continue; } String8 string = n->string; RDIM_Namespace *ns = rdim_namespace_chunk_list_push(arena, &lane_namespaces, 32); diff --git a/src/rdi_make/rdi_make_local.c b/src/rdi_make/rdi_make_local.c index f228b117..0cff69ae 100644 --- a/src/rdi_make/rdi_make_local.c +++ b/src/rdi_make/rdi_make_local.c @@ -486,7 +486,7 @@ rdim_bake(Arena *arena, RDIM_BakeParams *params) { U64 slot_idx = lane_idx()*all_global_variables->chunk_count + chunk_idx; Rng1U64 range = lane_range(n->count); - for EachIndex(n_idx, n->count) + for EachInRange(n_idx, range) { if(n->v[n_idx].location_cases.count == 1 && n->v[n_idx].location_cases.first->location.kind == RDI_LocationKind_ModuleOff)