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
commit31da370dd5fae72ddf756aa5ef54241b099fd617 (patch)
treee27c960ccf2a3bd782d85d12fda670b7beede19e
parent0bdf754b0c5c1ad18b28b4f28c6f90daac1a9994 (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 ()