Skip to content

Commit 44e3fe5

Browse files
xclercmshinwell
authored andcommitted
Delete IRC split mode module. (#1699)
1 parent 02edbfc commit 44e3fe5

File tree

2 files changed

+0
-41
lines changed

2 files changed

+0
-41
lines changed

backend/regalloc/regalloc_irc_utils.ml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -164,34 +164,6 @@ let update_register_locations : unit -> unit =
164164
then log ~indent:1 "updating %a to %d" Printmach.reg reg color;
165165
reg.Reg.loc <- Reg color))
166166

167-
module Split_mode = struct
168-
type t =
169-
| Off
170-
| Naive
171-
172-
let all = [Off; Naive]
173-
174-
let to_string = function Off -> "off" | Naive -> "naive"
175-
176-
let value =
177-
let available_modes () =
178-
String.concat ", "
179-
(all |> List.map ~f:to_string |> List.map ~f:(Printf.sprintf "%S"))
180-
in
181-
lazy
182-
(match find_param_value "IRC_SPLIT" with
183-
| None ->
184-
fatal "the IRC_SPLIT parameter is not set (possible values: %s)"
185-
(available_modes ())
186-
| Some id -> (
187-
match String.lowercase_ascii id with
188-
| "off" -> Off
189-
| "naive" -> Naive
190-
| _ ->
191-
fatal "unknown split mode %S (possible values: %s)" id
192-
(available_modes ())))
193-
end
194-
195167
module Spilling_heuristics = struct
196168
type t =
197169
| Set_choose

backend/regalloc/regalloc_irc_utils.mli

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,6 @@ val k : Reg.t -> int
7070

7171
val update_register_locations : unit -> unit
7272

73-
(* CR-soon xclerc for xclerc: remove this module. *)
74-
module Split_mode : sig
75-
type t =
76-
| Off
77-
| Naive
78-
79-
val all : t list
80-
81-
val to_string : t -> string
82-
83-
val value : t Lazy.t
84-
end
85-
8673
module Spilling_heuristics : sig
8774
type t =
8875
| Set_choose

0 commit comments

Comments
 (0)