Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CompCert-KVX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CertiCompil
CompCert-KVX
Commits
0fe569d2
Commit
0fe569d2
authored
4 years ago
by
David Monniaux
Browse files
Options
Downloads
Patches
Plain Diff
disable debug printing in scheduler
parent
1eaa5dad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aarch64/PrepassSchedulingOracle.ml
+5
-3
5 additions, 3 deletions
aarch64/PrepassSchedulingOracle.ml
scheduling/RTLpathScheduleraux.ml
+4
-4
4 additions, 4 deletions
scheduling/RTLpathScheduleraux.ml
with
9 additions
and
7 deletions
aarch64/PrepassSchedulingOracle.ml
+
5
−
3
View file @
0fe569d2
...
@@ -447,10 +447,12 @@ let schedule_sequence (seqa : (instruction*Regset.t) array) =
...
@@ -447,10 +447,12 @@ let schedule_sequence (seqa : (instruction*Regset.t) array) =
else
else
begin
begin
let
nr_instructions
=
Array
.
length
seqa
in
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
let
problem
=
define_problem
opweights
seqa
in
print_sequence
stdout
(
Array
.
map
fst
seqa
);
(
if
!
Clflags
.
option_debug_compcert
>
7
print_problem
stdout
problem
;
then
(
print_sequence
stdout
(
Array
.
map
fst
seqa
);
print_problem
stdout
problem
));
match
prepass_scheduler_by_name
match
prepass_scheduler_by_name
(
!
Clflags
.
option_fprepass_sched
)
(
!
Clflags
.
option_fprepass_sched
)
problem
problem
...
...
This diff is collapsed.
Click to expand it.
scheduling/RTLpathScheduleraux.ml
+
4
−
4
View file @
0fe569d2
...
@@ -110,11 +110,11 @@ let schedule_superblock sb code =
...
@@ -110,11 +110,11 @@ let schedule_superblock sb code =
if
not
!
Clflags
.
option_fprepass
if
not
!
Clflags
.
option_fprepass
then
sb
.
instructions
then
sb
.
instructions
else
else
let
old_flag
=
!
debug_flag
in
(*
let old_flag = !debug_flag in
debug_flag := true;
debug_flag := true;
print_endline "ORIGINAL SUPERBLOCK";
print_endline "ORIGINAL SUPERBLOCK";
print_superblock sb code;
print_superblock sb code;
debug_flag
:=
old_flag
;
debug_flag := old_flag;
*)
let
nr_instr
=
Array
.
length
sb
.
instructions
in
let
nr_instr
=
Array
.
length
sb
.
instructions
in
let
trailer_length
=
let
trailer_length
=
match
PTree
.
get
(
sb
.
instructions
.
(
nr_instr
-
1
))
code
with
match
PTree
.
get
(
sb
.
instructions
.
(
nr_instr
-
1
))
code
with
...
@@ -138,11 +138,11 @@ let schedule_superblock sb code =
...
@@ -138,11 +138,11 @@ let schedule_superblock sb code =
Array
.
append
Array
.
append
(
Array
.
map
(
fun
i
->
sb
.
instructions
.
(
i
))
order
)
(
Array
.
map
(
fun
i
->
sb
.
instructions
.
(
i
))
order
)
(
Array
.
sub
sb
.
instructions
(
nr_instr
-
trailer_length
)
trailer_length
)
in
(
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;
debug_flag := true;
print_instructions (Array.to_list ins') code;
print_instructions (Array.to_list ins') code;
debug_flag := old_flag;
debug_flag := old_flag;
flush
stdout
;
flush stdout;
*)
assert
((
Array
.
length
sb
.
instructions
)
=
(
Array
.
length
ins'
));
assert
((
Array
.
length
sb
.
instructions
)
=
(
Array
.
length
ins'
));
(*sb.instructions; *)
(*sb.instructions; *)
ins'
;;
ins'
;;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment