diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-11-11 15:32:10 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-11-11 15:32:10 -0500 |
commit | ecbd0aad2d719dd9b92362befe42d63ceacc5d56 (patch) | |
tree | c56872f4ba61c06c5a8609faf5db8b8213c3c41b /src | |
parent | c37eb2bf37073699bd66ae920359ffb20e6b93ef (diff) |
Ignore UseRel effects in [let] expansions
Diffstat (limited to 'src')
-rw-r--r-- | src/mono_reduce.sml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mono_reduce.sml b/src/mono_reduce.sml index 942a9291..24e686da 100644 --- a/src/mono_reduce.sml +++ b/src/mono_reduce.sml @@ -425,12 +425,13 @@ fun reduce file = if impure e' then let val effs_e' = summarize 0 e' + val effs_e' = List.filter (fn x => x <> UseRel) effs_e' val effs_b = summarize 0 b (*val () = Print.prefaces "Try" - [("e", MonoPrint.p_exp env (e, ErrorMsg.dummySpan)), - ("e'", p_events effs_e'), - ("b", p_events effs_b)]*) + [("e", MonoPrint.p_exp env (e, ErrorMsg.dummySpan)), + ("e'", p_events effs_e'), + ("b", p_events effs_b)]*) fun does eff = List.exists (fn eff' => eff' = eff) effs_e' val writesPage = does WritePage |