Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
xclerc committed Feb 28, 2025
1 parent 7cdd025 commit e8786a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/regalloc/regalloc_irc_state.ml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ let[@inline] make ~initial ~stack_slots ~last_used () =
let coalesced_nodes = RegWorkList.make ~original_capacity in
let colored_nodes = Doubly_linked_list.make_empty () in
let select_stack = [] in
let original_capacity = 1024 (* XXX *) in
let original_capacity =
Int.min max_capacity (InstructionId.to_int_unsafe last_used)
in
let coalesced_moves = InstructionWorkList.make ~original_capacity in
let constrained_moves = InstructionWorkList.make ~original_capacity in
let frozen_moves = InstructionWorkList.make ~original_capacity in
Expand Down

0 comments on commit e8786a7

Please sign in to comment.