Skip to content

Commit

Permalink
Fix Regalloc_split_state to use the new dominators interface (#1818)
Browse files Browse the repository at this point in the history
  • Loading branch information
xclerc authored Sep 11, 2023
1 parent 77b512e commit 0043866
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/regalloc/regalloc_split_state.ml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ end = struct
let definitions_at_beginning = ref definitions_at_beginning in
let doms = Cfg_with_infos.dominators cfg_with_infos in
let stack = Stack.create () in
Cfg_dominators.iter_breadth_dominator_tree
doms.Cfg_dominators.dominator_tree ~f:(fun (label : Label.t) ->
Cfg_dominators.iter_breadth_dominator_tree doms ~f:(fun (label : Label.t) ->
Stack.push label stack;
let block = Cfg_with_infos.get_block_exn cfg_with_infos label in
match Label.Map.find_opt label !definitions_at_beginning with
Expand Down

0 comments on commit 0043866

Please sign in to comment.