aboutsummaryrefslogtreecommitdiff
path: root/kernel/type_errors.ml
diff options
context:
space:
mode:
authorletouzey2010-07-08 14:07:48 +0000
committerletouzey2010-07-08 14:07:48 +0000
commit44e80ba4e4c863e0c38cc7cf6a65579640385436 (patch)
tree8240bcf69da4aa761fcb49516a5dc50038760d9e /kernel/type_errors.ml
parent9a69dd9a3f0b4ffe94d5ef4670858f7a7e99f405 (diff)
Extraction: more factorization of common match branches
In addition to the "| _ -> cst" situation, now we can also reconstruct a "| e -> f e" final branch. For instance, this has a tremenduous effect on Compcert/backend/Selection.v. NB: The "fun" factorisation is almost more general than the "cst" situation, but not always. Think of A=>A|B=>A, 1st branch will be recognized as (fun x->x), not (fun x->A). We also add a fine detection of inductive types with phantom type variables, for which this optimisation is type-unsafe. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13267 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/type_errors.ml')
0 files changed, 0 insertions, 0 deletions