diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2021-01-07 17:43:19 +0100 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2021-01-07 17:43:19 +0100 |
commit | 749fa737e57bb37539ee742f0df552fec8d3e4ef (patch) | |
tree | 934b4cbb63f426ee682252cb27cefe168a0fc9ac /backend/CSE3.v | |
parent | e21a56acc2d28995aef4586668f756806a53869b (diff) | |
download | compcert-kvx-749fa737e57bb37539ee742f0df552fec8d3e4ef.tar.gz compcert-kvx-749fa737e57bb37539ee742f0df552fec8d3e4ef.zip |
-fcse3-trivial-ops
Diffstat (limited to 'backend/CSE3.v')
-rw-r--r-- | backend/CSE3.v | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/CSE3.v b/backend/CSE3.v index df1c2bfc..13d07e65 100644 --- a/backend/CSE3.v +++ b/backend/CSE3.v @@ -58,7 +58,8 @@ Definition transf_instr (fmap : PMap.t RB.t) match instr with | Iop op args dst s => let args' := subst_args fmap pc args in - match (if is_trivial_op op then None else find_op_in_fmap fmap pc op args') with + match (if (negb (Compopts.optim_CSE3_trivial_ops tt)) && (is_trivial_op op) + then None else find_op_in_fmap fmap pc op args') with | None => Iop op args' dst s | Some src => Iop Omove (src::nil) dst s end |