changeset 1019:68ba074e260f

Always inline records
author Adam Chlipala <adamc@hcoop.net>
date Sun, 25 Oct 2009 13:12:24 -0400
parents 9304474170ed
children dfe34fad749d
files src/reduce.sml
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/reduce.sml	Sun Oct 25 13:02:13 2009 -0400
+++ b/src/reduce.sml	Sun Oct 25 13:12:24 2009 -0400
@@ -838,6 +838,9 @@
             case IM.find (uses, n) of
                 NONE => false
               | SOME count => count <= 1
+                              orelse (case #1 e of
+                                          ERecord _ => true
+                                        | _ => false)
                               orelse isPoly polyC t
                               orelse size e <= Settings.getCoreInline ()