Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/b8e0ce7b417d48fa01a48aca5ff9852cffc989d7 >--------------------------------------------------------------- commit b8e0ce7b417d48fa01a48aca5ff9852cffc989d7 Author: Edward Z. Yang <[email protected]> Date: Fri Jun 17 18:27:25 2011 +0100 Port MachOp folding to new code generator. * Rewrote cmmMachOpFold to cmmMachOpFoldM, which returns Nothing if no folding took place. * Wrote some generic mapping functions which take functions of form 'a -> Maybe a' and are smart about sharing. * Split up optimizations from PIC and PPC work in the native codegen, so they'll be easier to turn off later (they are not currently being turned off, however.) * Whitespace fixes! ToDo: Turn off MachOp folding when new codegenerator is being used. Signed-off-by: Edward Z. Yang <[email protected]> compiler/cmm/CmmNode.hs | 50 +++++ compiler/cmm/CmmOpt.hs | 360 +++++++++++++++++---------------- compiler/cmm/CmmRewriteAssignments.hs | 23 ++- compiler/nativeGen/AsmCodeGen.lhs | 49 ++++-- 4 files changed, 292 insertions(+), 190 deletions(-) Diff suppressed because of size. To see it, use: git show b8e0ce7b417d48fa01a48aca5ff9852cffc989d7 _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
