aboutsummaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
authorDavid Monniaux <David.Monniaux@univ-grenoble-alpes.fr>2021-07-16 15:29:25 +0200
committerDavid Monniaux <David.Monniaux@univ-grenoble-alpes.fr>2021-07-16 15:29:25 +0200
commit2ff766a18432fd75739abab0b5741ded6b67a2a5 (patch)
treea3557b612a0930b93afc1297e22915e552c951ee /driver
parent67f4ae2b702cc95ed7cef67b726e15abbf18e768 (diff)
downloadcompcert-kvx-2ff766a18432fd75739abab0b5741ded6b67a2a5.tar.gz
compcert-kvx-2ff766a18432fd75739abab0b5741ded6b67a2a5.zip
activate register pressure by default
Diffstat (limited to 'driver')
-rw-r--r--driver/Clflags.ml2
-rw-r--r--driver/Driver.ml8
2 files changed, 5 insertions, 5 deletions
diff --git a/driver/Clflags.ml b/driver/Clflags.ml
index 085eaa7e..25bd2c78 100644
--- a/driver/Clflags.ml
+++ b/driver/Clflags.ml
@@ -51,7 +51,7 @@ let option_flooprotate = ref 0 (* rotate the innermost loops to have the conditi
let option_mtune = ref ""
let option_fprepass = ref true
-let option_fprepass_sched = ref "list"
+let option_fprepass_sched = ref "regpres"
let option_fpostpass = ref true
let option_fpostpass_sched = ref "list"
diff --git a/driver/Driver.ml b/driver/Driver.ml
index 79353f32..3f5a4bd9 100644
--- a/driver/Driver.ml
+++ b/driver/Driver.ml
@@ -298,9 +298,9 @@ let num_input_files = ref 0
let cmdline_actions =
let f_opt name ref =
[Exact("-f" ^ name), Set ref; Exact("-fno-" ^ name), Unset ref] in
- let f_opt_str name ref strref =
+ let f_opt_str name default ref strref =
[Exact("-f" ^ name ^ "="), String
- (fun s -> (strref := (if s == "" then "list" else s)); ref := true)
+ (fun s -> (strref := (if s == "" then default else s)); ref := true)
] in
let f_str name strref default =
[Exact("-f" ^ name ^ "="), String
@@ -435,8 +435,8 @@ let cmdline_actions =
@ [ Exact "-funrollbody", Integer (fun n -> option_funrollbody := n) ]
@ [ Exact "-flooprotate", Integer (fun n -> option_flooprotate := n) ]
@ f_opt "tracelinearize" option_ftracelinearize
- @ f_opt_str "prepass" option_fprepass option_fprepass_sched
- @ f_opt_str "postpass" option_fpostpass option_fpostpass_sched
+ @ f_opt_str "prepass" "regpress" option_fprepass option_fprepass_sched
+ @ f_opt_str "postpass" "list" option_fpostpass option_fpostpass_sched
@ f_opt "inline" option_finline
@ f_opt "inline-functions-called-once" option_finline_functions_called_once
@ f_opt "globaladdrtmp" option_fglobaladdrtmp