You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: move is_zero to utils, deduplicate build_global_const_map
- Remove local `build_global_const_map` from branch_fold — utils already
provides an identical implementation; import it instead
- Move `is_zero` helper to utils so it can be shared by other passes
- Compute both `global_uses` and `global_consts` in `eliminate` and pass
both into `fold_one`, making the two maps symmetric at the call site
- Drop the per-block `local_consts` clone — `build_global_const_map`
already captures all Const-defined variables across the function in SSA
form, so the block-level augmentation was redundant
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments