Skip to content

Commit

Permalink
Delete IRC split mode module. (ocaml-flambda#1699)
Browse files Browse the repository at this point in the history
  • Loading branch information
xclerc authored and mshinwell committed Aug 16, 2023
1 parent 02edbfc commit 44e3fe5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
28 changes: 0 additions & 28 deletions backend/regalloc/regalloc_irc_utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -164,34 +164,6 @@ let update_register_locations : unit -> unit =
then log ~indent:1 "updating %a to %d" Printmach.reg reg color;
reg.Reg.loc <- Reg color))

module Split_mode = struct
type t =
| Off
| Naive

let all = [Off; Naive]

let to_string = function Off -> "off" | Naive -> "naive"

let value =
let available_modes () =
String.concat ", "
(all |> List.map ~f:to_string |> List.map ~f:(Printf.sprintf "%S"))
in
lazy
(match find_param_value "IRC_SPLIT" with
| None ->
fatal "the IRC_SPLIT parameter is not set (possible values: %s)"
(available_modes ())
| Some id -> (
match String.lowercase_ascii id with
| "off" -> Off
| "naive" -> Naive
| _ ->
fatal "unknown split mode %S (possible values: %s)" id
(available_modes ())))
end

module Spilling_heuristics = struct
type t =
| Set_choose
Expand Down
13 changes: 0 additions & 13 deletions backend/regalloc/regalloc_irc_utils.mli
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,6 @@ val k : Reg.t -> int

val update_register_locations : unit -> unit

(* CR-soon xclerc for xclerc: remove this module. *)
module Split_mode : sig
type t =
| Off
| Naive

val all : t list

val to_string : t -> string

val value : t Lazy.t
end

module Spilling_heuristics : sig
type t =
| Set_choose
Expand Down

0 comments on commit 44e3fe5

Please sign in to comment.