categorifier
categorifier copied to clipboard
Fix OccInfo
In the Plugins.Let (Plugins.NonRec v rhs) expr case, currently the v's OccInfo is always ManyOccs, probably because we forget to zapIdOccInfo somewhere. If the OccInfo is accurate, we can obtain isManyOccs from it rather than manually counting.
There's a GHC function occurAnalyseExpr, I don't think we've ever tried it before.