[project @ 1999-01-28 09:19:57 by simonpj]
Always inline nullary constructors. This makes a difference in: case x ># y of r { True -> f1 r False -> f2 r } The code generator currently has difficulty binding "r" to the boolean result of the comparision (and the compiler crashes). This fix substitutes for r, thus: case x ># y of r { True -> f1 True False -> f2 False } Voila.
Showing
- ghc/compiler/basicTypes/IdInfo.lhs 0 additions, 20 deletionsghc/compiler/basicTypes/IdInfo.lhs
- ghc/compiler/basicTypes/Name.lhs 0 additions, 20 deletionsghc/compiler/basicTypes/Name.lhs
- ghc/compiler/coreSyn/CoreUnfold.lhs 5 additions, 1 deletionghc/compiler/coreSyn/CoreUnfold.lhs
- ghc/compiler/coreSyn/CoreUtils.lhs 1 addition, 1 deletionghc/compiler/coreSyn/CoreUtils.lhs
- ghc/compiler/coreSyn/PprCore.lhs 44 additions, 4 deletionsghc/compiler/coreSyn/PprCore.lhs
- ghc/compiler/main/MkIface.lhs 7 additions, 4 deletionsghc/compiler/main/MkIface.lhs
- ghc/compiler/rename/RnEnv.lhs 2 additions, 1 deletionghc/compiler/rename/RnEnv.lhs
- ghc/compiler/simplCore/OccurAnal.lhs 8 additions, 3 deletionsghc/compiler/simplCore/OccurAnal.lhs
- ghc/compiler/simplCore/Simplify.lhs 36 additions, 48 deletionsghc/compiler/simplCore/Simplify.lhs
Loading
Please register or sign in to comment