aboutsummaryrefslogtreecommitdiffstats
path: root/backend/CSE3analysisproof.v
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-12-09 13:15:53 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-12-09 13:15:53 +0100
commit0a13bf127bb385df424bd9e392742d4fc5bef86a (patch)
treee01a0c87bc5225934604cb1d3a786b7c02b6243f /backend/CSE3analysisproof.v
parentf01d490fad2fbf7fb7a2e0861075ca6c09976ec4 (diff)
downloadcompcert-kvx-0a13bf127bb385df424bd9e392742d4fc5bef86a.tar.gz
compcert-kvx-0a13bf127bb385df424bd9e392742d4fc5bef86a.zip
begin implementing -fcse3-conditions
Diffstat (limited to 'backend/CSE3analysisproof.v')
-rw-r--r--backend/CSE3analysisproof.v12
1 files changed, 8 insertions, 4 deletions
diff --git a/backend/CSE3analysisproof.v b/backend/CSE3analysisproof.v
index 29d171eb..d53cf604 100644
--- a/backend/CSE3analysisproof.v
+++ b/backend/CSE3analysisproof.v
@@ -1350,10 +1350,14 @@ Section SOUNDNESS.
Proof.
unfold apply_cond.
intros.
- pose proof (apply_cond1_sound pc cond args rel rs m COND REL) as SOUND1.
- destruct apply_cond1 eqn:COND1.
- { apply apply_cond0_sound; auto. }
- exact SOUND1.
+ destruct (Compopts.optim_CSE3_conditions tt).
+ {
+ pose proof (apply_cond1_sound pc cond args rel rs m COND REL) as SOUND1.
+ destruct apply_cond1 eqn:COND1.
+ { apply apply_cond0_sound; auto. }
+ exact SOUND1.
+ }
+ exact REL.
Qed.
(*