[commit: ghc] foldr-to-foldl: Replace a number of foldrs with foldl's (7d76421)

git at git.haskell.org git at git.haskell.org
Wed Jan 11 03:24:39 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : foldr-to-foldl
Link       : http://ghc.haskell.org/trac/ghc/changeset/7d764215a9a17f4dc26784b66c4c2508c9d19e33/ghc

>---------------------------------------------------------------

commit 7d764215a9a17f4dc26784b66c4c2508c9d19e33
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Tue Jan 10 21:32:49 2017 -0500

    Replace a number of foldrs with foldl's


>---------------------------------------------------------------

7d764215a9a17f4dc26784b66c4c2508c9d19e33
 compiler/cmm/CmmContFlowOpt.hs                        | 11 ++++++-----
 compiler/cmm/CmmSink.hs                               |  4 ++--
 compiler/cmm/CmmUtils.hs                              |  3 ++-
 compiler/cmm/MkGraph.hs                               |  5 +++--
 compiler/coreSyn/CoreFVs.hs                           |  8 +++++---
 compiler/coreSyn/CoreStats.hs                         | 17 ++++++++++-------
 compiler/hsSyn/HsUtils.hs                             |  6 +++---
 compiler/main/HscTypes.hs                             |  9 +++++----
 compiler/nativeGen/AsmCodeGen.hs                      |  2 +-
 compiler/nativeGen/RegAlloc/Linear/JoinToTargets.hs   |  3 ++-
 compiler/nativeGen/RegAlloc/Linear/Main.hs            |  5 +++--
 compiler/nativeGen/RegAlloc/Linear/PPC/FreeRegs.hs    |  4 ++--
 compiler/nativeGen/RegAlloc/Linear/SPARC/FreeRegs.hs  |  4 ++--
 compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs    |  3 ++-
 compiler/nativeGen/RegAlloc/Linear/X86_64/FreeRegs.hs |  3 ++-
 compiler/nativeGen/RegAlloc/Liveness.hs               |  2 +-
 compiler/rename/RnSource.hs                           |  6 +++---
 compiler/specialise/SpecConstr.hs                     |  4 +++-
 compiler/specialise/Specialise.hs                     |  5 +++--
 compiler/stgSyn/CoreToStg.hs                          |  5 +++--
 compiler/typecheck/TcBinds.hs                         |  9 +++++----
 compiler/typecheck/TcRnTypes.hs                       |  4 ++--
 compiler/typecheck/TcTyClsDecls.hs                    | 10 +++++-----
 compiler/typecheck/TcTyDecls.hs                       |  5 +++--
 compiler/types/Type.hs                                |  5 +++--
 compiler/utils/Bag.hs                                 |  3 ++-
 compiler/utils/UnVarGraph.hs                          |  2 +-
 compiler/utils/UniqSet.hs                             |  4 ++--
 28 files changed, 86 insertions(+), 65 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 7d764215a9a17f4dc26784b66c4c2508c9d19e33


More information about the ghc-commits mailing list