aboutsummaryrefslogtreecommitdiffstats
path: root/scheduling/RTLpathScheduleraux.ml
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-11-04 09:10:00 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-11-04 09:10:00 +0100
commit0fe569d24b99a34fb3b9ad6c0cb86876cc86a31d (patch)
tree039008bcd6deea37d72e5976c5c678b7f1084974 /scheduling/RTLpathScheduleraux.ml
parent1eaa5dadb71eaaad8ba6e6f8293ee9dbb7e0a03d (diff)
downloadcompcert-kvx-0fe569d24b99a34fb3b9ad6c0cb86876cc86a31d.tar.gz
compcert-kvx-0fe569d24b99a34fb3b9ad6c0cb86876cc86a31d.zip
disable debug printing in scheduler
Diffstat (limited to 'scheduling/RTLpathScheduleraux.ml')
-rw-r--r--scheduling/RTLpathScheduleraux.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/scheduling/RTLpathScheduleraux.ml b/scheduling/RTLpathScheduleraux.ml
index 88f777a5..66910bdf 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';;