Allow use of simple scheduler after control synthesis code generation

The -simple-scheduler option now imply the use of simple scheduler
both before and after control synthesis code generation.
This commit is contained in:
Gwenaël Delaval 2018-06-07 11:51:06 +02:00
parent 7abe92dc0d
commit b51c292231

View file

@ -126,10 +126,14 @@ let compile_program p log_c =
(* Re-scheduling after generation *)
let p =
if not !Compiler_options.use_old_scheduler then
match !Compiler_options.use_old_scheduler,
!Compiler_options.use_simple_scheduler with
| false, false ->
pass "Scheduling (with minimization of interferences)" ctrl Schedule_interf.program p pp
else
| true, false ->
pass "Scheduling" ctrl Schedule.program p pp
| _, true ->
pass "Scheduling (simple)" ctrl Schedule_simple.program p pp
in
(* Memory allocation *)