diff options
author | Léo Gourdin <leo.gourdin@lilo.org> | 2021-11-02 10:10:34 +0100 |
---|---|---|
committer | Léo Gourdin <leo.gourdin@lilo.org> | 2021-11-02 10:10:34 +0100 |
commit | 173e6c25b2937d6e6941973aa7b116e1d6405513 (patch) | |
tree | e5f63f343a3d1a1341dc2e8a09f6cdb706226de3 /backend/Profilingproof.v | |
parent | f9e4d91431334d88992e62a232a9e2ff2f6fcdc9 (diff) | |
download | compcert-kvx-173e6c25b2937d6e6941973aa7b116e1d6405513.tar.gz compcert-kvx-173e6c25b2937d6e6941973aa7b116e1d6405513.zip |
Porting the BTL non-trap loads approach to RTL
Diffstat (limited to 'backend/Profilingproof.v')
-rw-r--r-- | backend/Profilingproof.v | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/backend/Profilingproof.v b/backend/Profilingproof.v index 0cebc601..e39e7f80 100644 --- a/backend/Profilingproof.v +++ b/backend/Profilingproof.v @@ -458,27 +458,27 @@ Proof. * rewrite eval_operation_preserved with (ge1:=ge); eauto with profiling. + constructor; auto. - - econstructor; split. - + apply plus_one. apply exec_Iload with (trap:=trap) (chunk:=chunk) - (addr:=addr) (args:=args) (a:=a). - erewrite transf_function_at; eauto. apply I. - rewrite eval_addressing_preserved with (ge1:=ge). - all: eauto with profiling. - + constructor; auto. - - econstructor; split. - + apply plus_one. apply exec_Iload_notrap1 with (chunk:=chunk) - (addr:=addr) (args:=args). - erewrite transf_function_at; eauto. apply I. - rewrite eval_addressing_preserved with (ge1:=ge). - all: eauto with profiling. - + constructor; auto. - - econstructor; split. - + apply plus_one. apply exec_Iload_notrap2 with (chunk:=chunk) - (addr:=addr) (args:=args) (a:=a). - erewrite transf_function_at; eauto. apply I. - rewrite eval_addressing_preserved with (ge1:=ge). - all: eauto with profiling. - + constructor; auto. + - inv H0. + + econstructor; split. + * apply plus_one. eapply exec_Iload; eauto. + -- erewrite transf_function_at; eauto. apply I. + -- eapply has_loaded_normal. rewrite eval_addressing_preserved with (ge1:=ge). + all: eauto with profiling. + * constructor; auto. + + destruct (eval_addressing) eqn:EVAL in LOAD. + * econstructor; split. + -- specialize (LOAD v). apply plus_one. eapply exec_Iload; eauto. + ++ erewrite transf_function_at; eauto. apply I. + ++ eapply has_loaded_default; eauto. rewrite eval_addressing_preserved with (ge1:=ge). + intros a EVAL'; rewrite EVAL in EVAL'; inv EVAL'. apply LOAD; auto. + eauto with profiling. + -- constructor; auto. + * econstructor; split. + -- apply plus_one. eapply exec_Iload; eauto. + ++ erewrite transf_function_at; eauto. apply I. + ++ eapply has_loaded_default; eauto. rewrite eval_addressing_preserved with (ge1:=ge). + intros a EVAL'; rewrite EVAL in EVAL'; inv EVAL'. eauto with profiling. + -- constructor; auto. - econstructor; split. + apply plus_one. apply exec_Istore with (chunk:=chunk) (src := src) (addr:=addr) (args:=args) (a:=a). |