diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2012-01-14 14:23:26 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2012-01-14 14:23:26 +0000 |
commit | a82c9c0e4a0b8e37c9c3ea5ae99714982563606f (patch) | |
tree | 93b9999698a4cd47ec4cb5fcdcdfd215d62f8e9e /backend/Tailcallproof.v | |
parent | bb8f49c419eb8205ef541edcbe17f4d14aa99564 (diff) | |
download | compcert-kvx-a82c9c0e4a0b8e37c9c3ea5ae99714982563606f.tar.gz compcert-kvx-a82c9c0e4a0b8e37c9c3ea5ae99714982563606f.zip |
Merge of the nonstrict-ops branch:
- Most RTL operators now evaluate to Some Vundef instead of None
when undefined behavior occurs.
- More aggressive instruction selection.
- "Bertotization" of pattern-matchings now implemented by a proper preprocessor.
- Cast optimization moved to cfrontend/Cminorgen; removed backend/CastOptim.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1790 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'backend/Tailcallproof.v')
-rw-r--r-- | backend/Tailcallproof.v | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/backend/Tailcallproof.v b/backend/Tailcallproof.v index f3dd9ed9..02a6ca90 100644 --- a/backend/Tailcallproof.v +++ b/backend/Tailcallproof.v @@ -508,17 +508,10 @@ Proof. exact symbols_preserved. exact varinfo_preserved. econstructor; eauto. apply regset_set; auto. -(* cond true *) +(* cond *) TransfInstr. - left. exists (State s' (transf_function f) (Vptr sp0 Int.zero) ifso rs' m'); split. - eapply exec_Icond_true; eauto. - apply eval_condition_lessdef with (rs##args) m; auto. apply regset_get_list; auto. - constructor; auto. - -(* cond false *) - TransfInstr. - left. exists (State s' (transf_function f) (Vptr sp0 Int.zero) ifnot rs' m'); split. - eapply exec_Icond_false; eauto. + left. exists (State s' (transf_function f) (Vptr sp0 Int.zero) (if b then ifso else ifnot) rs' m'); split. + eapply exec_Icond; eauto. apply eval_condition_lessdef with (rs##args) m; auto. apply regset_get_list; auto. constructor; auto. |