simonmar 2003/07/30 03:01:47 PDT
Modified files:
ghc/compiler/coreSyn CoreUtils.lhs
Log:
Throw away an SCC on a single variable. This seems to be justified:
there can be no work to attribute to the current cost centre when
evaluating a lone variable, other than the act of entering the
closure, and possibly returning immediately if it is a variable.
This also fixes a bug in profiling, which showed up as incorrect
transformations made by the simplifier resulting in extra strictness.
The simplifier assumes (in Simplify.simplLazyBind) that (let x = e in
x) will have been turned into x, but this isn't true if there's an SCC
around the x.
Revision Changes Path
1.115 +5 -0 fptools/ghc/compiler/coreSyn/CoreUtils.lhs
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc