summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-10-25 13:12:24 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-10-25 13:12:24 -0400
commitda76d63970055a475aafb8971e773d074878e21b (patch)
treee27c960ccf2a3bd782d85d12fda670b7beede19e
parentc5f38edf4ac2bbc9932d07de69d1757a587215d3 (diff)
Always inline records
-rw-r--r--src/reduce.sml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/reduce.sml b/src/reduce.sml
index 59ec565a..38465fda 100644
--- a/src/reduce.sml
+++ b/src/reduce.sml
@@ -838,6 +838,9 @@ fun reduce file =
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 ()