[project @ 1998-06-16 12:25:36 by sof]
authorsof <unknown>
Tue, 16 Jun 1998 12:25:39 +0000 (12:25 +0000)
committersof <unknown>
Tue, 16 Jun 1998 12:25:39 +0000 (12:25 +0000)
commit1ca8c2c729e6c224090307fc7e9c42e302a2097a
treeb01ae8637b58aecc70dccd237df0c140baec462c
parent0e24544c6c180bce89fbf852f6421a7c4b58cab8
[project @ 1998-06-16 12:25:36 by sof]
New function: okToUnfoldInHiFile.

  - For values whose RHS have been deemed to be interface
    file unfolding candidates, do a last minute check to
    see whether the unfolding is really suitable.

    An unfolding is not suitable iff

       - contains a _casm_
       - contains a lit-lit

    The reason for not unfolding _casm_/lit-lits into
    interface files is that their C fragments are likely
    to mention #defines/functions that will be
    out-of-scope at an unfolding site. Turning off unfolding
    of such expressions avoid this unfortunate situation.
ghc/compiler/coreSyn/CoreUnfold.lhs
ghc/compiler/main/MkIface.lhs