diff --git a/aarch64/PrepassSchedulingOracle.ml b/aarch64/PrepassSchedulingOracle.ml index 358ee97bb6a158c2ccbcd0ab4bc26666dbec88ed..2c3eb14fb33c28c96043ad7cdf4986a7c1117920 100644 --- a/aarch64/PrepassSchedulingOracle.ml +++ b/aarch64/PrepassSchedulingOracle.ml @@ -447,10 +447,12 @@ let schedule_sequence (seqa : (instruction*Regset.t) array) = else begin let nr_instructions = Array.length seqa in - Printf.printf "prepass scheduling length = %d\n" (Array.length seqa); + (if !Clflags.option_debug_compcert > 6 + then Printf.printf "prepass scheduling length = %d\n" (Array.length seqa)); let problem = define_problem opweights seqa in - print_sequence stdout (Array.map fst seqa); - print_problem stdout problem; + (if !Clflags.option_debug_compcert > 7 + then (print_sequence stdout (Array.map fst seqa); + print_problem stdout problem)); match prepass_scheduler_by_name (!Clflags.option_fprepass_sched) problem diff --git a/scheduling/RTLpathScheduleraux.ml b/scheduling/RTLpathScheduleraux.ml index 88f777a5de3ecd9b540c2b78690157b89a00aae4..66910bdfe9f4290e9501d79e792c95028c4d0ec9 100644 --- a/scheduling/RTLpathScheduleraux.ml +++ b/scheduling/RTLpathScheduleraux.ml @@ -110,11 +110,11 @@ let schedule_superblock sb code = if not !Clflags.option_fprepass then sb.instructions else - let old_flag = !debug_flag in + (* let old_flag = !debug_flag in debug_flag := true; print_endline "ORIGINAL SUPERBLOCK"; print_superblock sb code; - debug_flag := old_flag; + debug_flag := old_flag; *) let nr_instr = Array.length sb.instructions in let trailer_length = match PTree.get (sb.instructions.(nr_instr-1)) code with @@ -138,11 +138,11 @@ let schedule_superblock sb code = Array.append (Array.map (fun i -> sb.instructions.(i)) order) (Array.sub sb.instructions (nr_instr-trailer_length) trailer_length) in - Printf.printf "REORDERED SUPERBLOCK %d\n" (Array.length ins'); + (* Printf.printf "REORDERED SUPERBLOCK %d\n" (Array.length ins'); debug_flag := true; print_instructions (Array.to_list ins') code; debug_flag := old_flag; - flush stdout; + flush stdout; *) assert ((Array.length sb.instructions) = (Array.length ins')); (*sb.instructions; *) ins';;