aboutsummaryrefslogtreecommitdiffstats
path: root/backend/CSE3proof.v
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-10-29 16:02:39 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-10-29 16:02:39 +0100
commit92bb12b37533b7e70fd619edd23fd9a3ee4c247c (patch)
treecc4824886464671c980f6fb24feb988a1fc43f4b /backend/CSE3proof.v
parent4d79ef052cc05240d6613bb22ef1ec547b17d3e1 (diff)
downloadcompcert-kvx-92bb12b37533b7e70fd619edd23fd9a3ee4c247c.tar.gz
compcert-kvx-92bb12b37533b7e70fd619edd23fd9a3ee4c247c.zip
CSE3 trivial_ops flag
Diffstat (limited to 'backend/CSE3proof.v')
-rw-r--r--backend/CSE3proof.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/CSE3proof.v b/backend/CSE3proof.v
index 5dd5ee04..a0361746 100644
--- a/backend/CSE3proof.v
+++ b/backend/CSE3proof.v
@@ -462,12 +462,12 @@ Lemma step_simulation:
destruct (@PMap.get (option RELATION.t) pc) eqn:INV_PC.
pose proof (rhs_find_sound (sp:=sp) (genv:=ge) (ctx:=(context_from_hints (snd (preanalysis tenv f)))) pc (SOp op)
(subst_args (ctx:=(context_from_hints (snd (preanalysis tenv f)))) (fst (preanalysis tenv f)) pc args) t) as FIND_SOUND.
- * destruct (if is_trivial_op op
+ * destruct (if (negb (Compopts.optim_CSE3_trivial_ops tt) && is_trivial_op op)
then None
else
rhs_find pc (SOp op)
(subst_args (fst (preanalysis tenv f)) pc args) t) eqn:FIND.
- ** destruct (is_trivial_op op). discriminate.
+ ** destruct (negb (Compopts.optim_CSE3_trivial_ops tt) && is_trivial_op op). discriminate.
apply exec_Iop with (op := Omove) (args := r :: nil).
TR_AT.
subst instr'.