summaryrefslogtreecommitdiff
path: root/compiler/simplCore/OccurAnal.hs
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2017-03-23 21:00:08 -0400
committerBen Gamari <ben@smart-cactus.org>2017-03-24 10:14:26 -0400
commit5671e22e913c60a0b5be4ddb3caa55fe8398b14f (patch)
tree8767b1adae978a7bd4a093af0abcd1bf4f81a927 /compiler/simplCore/OccurAnal.hs
parent1dd60ac9a949157da89d4e6e1f8203e746be58f3 (diff)
downloadhaskell-5671e22e913c60a0b5be4ddb3caa55fe8398b14f.tar.gz
Improve tracing in OccurAnal
One commented out tracing function didn't type check and also show the scores of loop breaker nodes. Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3371
Diffstat (limited to 'compiler/simplCore/OccurAnal.hs')
-rw-r--r--compiler/simplCore/OccurAnal.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/simplCore/OccurAnal.hs b/compiler/simplCore/OccurAnal.hs
index 6093f42a64..b14dbd9724 100644
--- a/compiler/simplCore/OccurAnal.hs
+++ b/compiler/simplCore/OccurAnal.hs
@@ -892,7 +892,6 @@ occAnalRec lvl (CyclicSCC details_s) (body_uds, binds)
| otherwise -- At this point we always build a single Rec
= -- pprTrace "occAnalRec" (vcat
-- [ text "weak_fvs" <+> ppr weak_fvs
- -- , text "tagged details" <+> ppr tagged_details_s
-- , text "lb nodes" <+> ppr loop_breaker_nodes])
(final_uds, Rec pairs : binds)
@@ -1204,6 +1203,7 @@ instance Outputable Details where
, text "inl =" <+> ppr (nd_inl nd)
, text "weak =" <+> ppr (nd_weak nd)
, text "rule =" <+> ppr (nd_active_rule_fvs nd)
+ , text "score =" <+> ppr (nd_score nd)
])
-- The NodeScore is compared lexicographically;