Skip to content

Commit 4b42aa3

Browse files
authored
Fix register allocator selection (ocaml-flambda#3912)
1 parent 689b66c commit 4b42aa3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

asmcomp/asmgen.ml

+1-4
Original file line numberDiff line numberDiff line change
@@ -288,15 +288,12 @@ type register_allocator =
288288
| IRC
289289
| LS
290290

291-
let default_allocator = IRC
292-
293291
let register_allocator fd : register_allocator =
294292
match String.lowercase_ascii !Flambda_backend_flags.regalloc with
295-
| "cfg" -> if should_use_linscan fd.fun_codegen_options then LS else IRC
293+
| "" | "cfg" -> if should_use_linscan fd.fun_codegen_options then LS else IRC
296294
| "gi" -> GI
297295
| "irc" -> IRC
298296
| "ls" -> LS
299-
| "" -> default_allocator
300297
| other -> Misc.fatal_errorf "unknown register allocator (%S)" other
301298

302299
let available_regs ~stack_slots ~f x =

0 commit comments

Comments
 (0)