@@ -5,12 +5,6 @@ open! Regalloc_utils
5
5
open ! Regalloc_irc_utils
6
6
module Doubly_linked_list = Flambda_backend_utils. Doubly_linked_list
7
7
8
- module List = struct
9
- include List
10
-
11
- let is_empty = function [] -> true | _ :: _ -> false
12
- end
13
-
14
8
module RegWorkList = ArraySet. Make (struct
15
9
type t = Reg .t
16
10
@@ -182,11 +176,7 @@ let[@inline] reset state ~new_inst_temporaries ~new_block_temporaries =
182
176
unknown_reg_work_list state.spilled_nodes;
183
177
RegWorkList. clear state.spilled_nodes;
184
178
RegWorkList. clear state.coalesced_nodes;
185
- <<<<<<< HEAD
186
179
assert (Misc.Stdlib.List. is_empty state.select_stack);
187
- =======
188
- assert (List. is_empty state.select_stack);
189
- >>>>>>> bfa5d3cc14 (Avoid polymorphic compare.)
190
180
unknown_instruction_work_list state.coalesced_moves;
191
181
InstructionWorkList. clear state.coalesced_moves;
192
182
unknown_instruction_work_list state.constrained_moves;
@@ -296,12 +286,8 @@ let[@inline] add_colored_nodes state reg =
296
286
reg.Reg. irc_work_list < - Reg. Colored ;
297
287
Doubly_linked_list. add_begin state.colored_nodes reg
298
288
299
- <<<<<<< HEAD
300
289
let [@ inline] is_empty_select_stack state =
301
290
Misc.Stdlib.List. is_empty state.select_stack
302
- =======
303
- let [@ inline] is_empty_select_stack state = List. is_empty state.select_stack
304
- >>>>>>> bfa5d3cc14 (Avoid polymorphic compare.)
305
291
306
292
let [@ inline] push_select_stack state reg =
307
293
reg.Reg. irc_work_list < - Reg. Select_stack ;
0 commit comments