aboutsummaryrefslogtreecommitdiffstats
path: root/backend/Selectionaux.ml
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@college-de-france.fr>2019-07-05 15:38:45 +0200
committerXavier Leroy <xavierleroy@users.noreply.github.com>2019-07-05 16:57:32 +0200
commitea6807fdaeaa2e46e1c7471c91056fdc4736cc2f (patch)
tree935ffec775bf57735982b9cf239c046c0e276f4d /backend/Selectionaux.ml
parent998f3c5ff90f6230b722b6094761f5989beea0a5 (diff)
downloadcompcert-kvx-ea6807fdaeaa2e46e1c7471c91056fdc4736cc2f.tar.gz
compcert-kvx-ea6807fdaeaa2e46e1c7471c91056fdc4736cc2f.zip
Rename option `-ffavor-branchless` into `-Obranchless`
Easier to type, and consistent with `-Os` (optimize for smaller code / optimize for fewer conditional branches).
Diffstat (limited to 'backend/Selectionaux.ml')
-rw-r--r--backend/Selectionaux.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/Selectionaux.ml b/backend/Selectionaux.ml
index de8127c6..4ca7dd21 100644
--- a/backend/Selectionaux.ml
+++ b/backend/Selectionaux.ml
@@ -80,10 +80,10 @@ let fast_cmove ty =
assert false
(* The if-conversion heuristic depend on the
- -fif-conversion and -ffavor-branchless flags.
+ -fif-conversion and -Obranchless flags.
With [-fno-if-conversion] or [-0O], if-conversion is turned off entirely.
-With [-ffavor-branchless], if-conversion is performed whenever semantically
+With [-Obranchless], if-conversion is performed whenever semantically
correct, regardless of how much it could cost.
Otherwise (and by default), optimization is performed when it seems beneficial.
@@ -106,7 +106,7 @@ instructions from the first branch.
let if_conversion_heuristic cond ifso ifnot ty =
if not !Clflags.option_fifconversion then false else
- if !Clflags.option_ffavor_branchless then true else
+ if !Clflags.option_Obranchless then true else
if not (fast_cmove ty) then false else
let c1 = cost_expr ifso and c2 = cost_expr ifnot in
c1 + c2 <= 24 && abs (c1 - c2) <= 8