[project @ 2000-07-18 14:47:52 by simonpj]
authorsimonpj <unknown>
Tue, 18 Jul 2000 14:47:52 +0000 (14:47 +0000)
committersimonpj <unknown>
Tue, 18 Jul 2000 14:47:52 +0000 (14:47 +0000)
Add comment

ghc/compiler/simplCore/SetLevels.lhs

index 5c83b64..51a4676 100644 (file)
    This means that a sub-expression involving x is not "trapped" inside the RHS.
    And it's not inconvenient because we already have a substitution.
 
+  Note that this is EXACTLY BACKWARDS from the what the simplifier does.
+  The simplifier tries to get rid of occurrences of x, in favour of wild,
+  in the hope that there will only be one remaining occurrence of x, namely
+  the scrutinee of the case, and we can inline it.  
+
 \begin{code}
 module SetLevels (
        setLevels,