Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/aecacda1f5227601bf387e48ec57079a52accd0c >--------------------------------------------------------------- commit aecacda1f5227601bf387e48ec57079a52accd0c Author: Max Bolingbroke <[email protected]> Date: Fri Jan 6 09:36:05 2012 +0000 Make impossible-alternative-finding code more reusable Makes the following changes: 1. Generalises the type signatures of some functions relating to alternatives so that the type of "variables" and "expression" is not specified 2. Puts the bulk of the alternative-filtering code into a new function filterAlts (in CoreUtils) that can be used outside of the SimplM monad 3. Allows prepareAlts to return a null alternatives list if none are applicable - it turns out that this case was already handled by the caller (in the simplifier). This should result in a modest optimisation improvement in some cases. Conflicts: compiler/coreSyn/CoreUtils.lhs compiler/simplCore/SimplUtils.lhs compiler/coreSyn/CoreSyn.lhs | 4 +- compiler/coreSyn/CoreUtils.lhs | 90 +++++++++++++++++++++++++++++++-- compiler/simplCore/SimplUtils.lhs | 100 ++++--------------------------------- compiler/simplCore/Simplify.lhs | 2 + 4 files changed, 98 insertions(+), 98 deletions(-) Diff suppressed because of size. To see it, use: git show aecacda1f5227601bf387e48ec57079a52accd0c _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
