[commit: ghc] master: vectorise: Put it out of its misery (faee23b)

git at git.haskell.org git at git.haskell.org
Sat Jun 2 20:21:35 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/faee23bb69ca813296da484bc177f4480bcaee9f/ghc

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

commit faee23bb69ca813296da484bc177f4480bcaee9f
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Sat Jun 2 11:56:58 2018 -0400

    vectorise: Put it out of its misery
    
    Poor DPH and its vectoriser have long been languishing; sadly it seems there is
    little chance that the effort will be rekindled. Every few years we discuss
    what to do with this mass of code and at least once we have agreed that it
    should be archived on a branch and removed from `master`. Here we do just that,
    eliminating heaps of dead code in the process.
    
    Here we drop the ParallelArrays extension, the vectoriser, and the `vector` and
    `primitive` submodules.
    
    Test Plan: Validate
    
    Reviewers: simonpj, simonmar, hvr, goldfire, alanz
    
    Reviewed By: simonmar
    
    Subscribers: goldfire, rwbarton, thomie, mpickering, carter
    
    Differential Revision: https://phabricator.haskell.org/D4761


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

faee23bb69ca813296da484bc177f4480bcaee9f
 compiler/backpack/RnModIface.hs                    |    1 -
 compiler/basicTypes/MkId.hs                        |   34 +-
 compiler/basicTypes/Module.hs                      |   11 +-
 compiler/basicTypes/Name.hs                        |   13 -
 compiler/basicTypes/OccName.hs                     |   31 -
 compiler/basicTypes/Unique.hs                      |    6 +-
 compiler/coreSyn/CoreFVs.hs                        |   12 -
 compiler/coreSyn/CoreLint.hs                       |    1 -
 compiler/coreSyn/CoreOpt.hs                        |   23 +-
 compiler/coreSyn/CoreSyn.hs                        |   21 -
 compiler/coreSyn/PprCore.hs                        |   18 -
 compiler/deSugar/Check.hs                          |    5 -
 compiler/deSugar/Coverage.hs                       |    8 -
 compiler/deSugar/Desugar.hs                        |   42 +-
 compiler/deSugar/DsArrows.hs                       |    1 -
 compiler/deSugar/DsExpr.hs                         |   27 -
 compiler/deSugar/DsListComp.hs                     |  210 +---
 compiler/deSugar/DsMeta.hs                         |   11 -
 compiler/deSugar/DsMonad.hs                        |  166 +--
 compiler/deSugar/DsUtils.hs                        |   78 +-
 compiler/deSugar/Match.hs                          |    9 -
 compiler/deSugar/MatchCon.hs                       |    6 +-
 compiler/deSugar/PmExpr.hs                         |   12 +-
 compiler/ghc.cabal.in                              |   30 -
 compiler/hsSyn/HsDecls.hs                          |  153 +--
 compiler/hsSyn/HsExpr.hs                           |   56 +-
 compiler/hsSyn/HsExtension.hs                      |   39 -
 compiler/hsSyn/HsInstances.hs                      |   10 -
 compiler/hsSyn/HsPat.hs                            |   13 -
 compiler/hsSyn/HsTypes.hs                          |   10 -
 compiler/hsSyn/HsUtils.hs                          |    2 -
 compiler/iface/IfaceType.hs                        |    1 -
 compiler/iface/LoadIface.hs                        |   24 +-
 compiler/iface/MkIface.hs                          |   25 +-
 compiler/iface/TcIface.hs                          |  139 +--
 compiler/iface/TcIface.hs-boot                     |    4 +-
 compiler/main/DynFlags.hs                          |   30 -
 compiler/main/HscTypes.hs                          |  148 +--
 compiler/main/Packages.hs                          |    9 -
 compiler/main/TidyPgm.hs                           |   58 +-
 compiler/parser/Lexer.x                            |   23 +-
 compiler/parser/Parser.y                           |   68 +-
 compiler/parser/RdrHsSyn.hs                        |    5 +-
 compiler/prelude/PrelNames.hs                      |   11 -
 compiler/prelude/TysWiredIn.hs                     |   89 +-
 compiler/rename/RnExpr.hs                          |   33 +-
 compiler/rename/RnPat.hs                           |    4 -
 compiler/rename/RnSource.hs                        |   66 +-
 compiler/rename/RnTypes.hs                         |    9 +-
 compiler/rename/RnUtils.hs                         |    3 -
 compiler/simplCore/CoreMonad.hs                    |    2 -
 compiler/simplCore/OccurAnal.hs                    |   12 +-
 compiler/simplCore/SimplCore.hs                    |   64 +-
 compiler/specialise/SpecConstr.hs                  |    2 +-
 compiler/typecheck/FamInst.hs                      |    1 -
 compiler/typecheck/TcBinds.hs                      |   76 +-
 compiler/typecheck/TcExpr.hs                       |   38 -
 compiler/typecheck/TcHsSyn.hs                      |   47 +-
 compiler/typecheck/TcHsType.hs                     |   41 +-
 compiler/typecheck/TcMatches.hs                    |   15 +-
 compiler/typecheck/TcPat.hs                        |    8 -
 compiler/typecheck/TcPatSyn.hs                     |    3 -
 compiler/typecheck/TcRnDriver.hs                   |   17 +-
 compiler/typecheck/TcRnMonad.hs                    |    1 -
 compiler/typecheck/TcRnTypes.hs                    |   31 +-
 compiler/typecheck/TcUnify.hs                      |    8 -
 compiler/utils/Outputable.hs                       |    5 +-
 compiler/vectorise/Vectorise.hs                    |  358 ------
 compiler/vectorise/Vectorise/Builtins.hs           |   35 -
 compiler/vectorise/Vectorise/Builtins/Base.hs      |  219 ----
 .../vectorise/Vectorise/Builtins/Initialise.hs     |  234 ----
 compiler/vectorise/Vectorise/Convert.hs            |  104 --
 compiler/vectorise/Vectorise/Env.hs                |  240 ----
 compiler/vectorise/Vectorise/Exp.hs                | 1260 --------------------
 .../vectorise/Vectorise/Generic/Description.hs     |  294 -----
 compiler/vectorise/Vectorise/Generic/PADict.hs     |  128 --
 compiler/vectorise/Vectorise/Generic/PAMethods.hs  |  586 ---------
 compiler/vectorise/Vectorise/Generic/PData.hs      |  178 ---
 compiler/vectorise/Vectorise/Monad.hs              |  196 ---
 compiler/vectorise/Vectorise/Monad/Base.hs         |  245 ----
 compiler/vectorise/Vectorise/Monad/Global.hs       |  239 ----
 compiler/vectorise/Vectorise/Monad/InstEnv.hs      |   82 --
 compiler/vectorise/Vectorise/Monad/Local.hs        |  102 --
 compiler/vectorise/Vectorise/Monad/Naming.hs       |  132 --
 compiler/vectorise/Vectorise/Type/Classify.hs      |  131 --
 compiler/vectorise/Vectorise/Type/Env.hs           |  457 -------
 compiler/vectorise/Vectorise/Type/TyConDecl.hs     |  223 ----
 compiler/vectorise/Vectorise/Type/Type.hs          |   87 --
 compiler/vectorise/Vectorise/Utils.hs              |  167 ---
 compiler/vectorise/Vectorise/Utils/Base.hs         |  261 ----
 compiler/vectorise/Vectorise/Utils/Closure.hs      |  163 ---
 compiler/vectorise/Vectorise/Utils/Hoisting.hs     |   98 --
 compiler/vectorise/Vectorise/Utils/PADict.hs       |  232 ----
 compiler/vectorise/Vectorise/Utils/Poly.hs         |   74 --
 compiler/vectorise/Vectorise/Var.hs                |  103 --
 compiler/vectorise/Vectorise/Vect.hs               |  128 --
 docs/ndp/haskell.sty                               |  496 --------
 docs/ndp/vect.tex                                  |  363 ------
 docs/users_guide/debugging.rst                     |   13 -
 docs/users_guide/extending_ghc.rst                 |    2 +-
 docs/users_guide/glasgow_exts.rst                  |    1 -
 docs/users_guide/parallel.rst                      |   10 -
 docs/users_guide/using-optimisation.rst            |   52 -
 ghc.mk                                             |   21 +-
 libraries/base/GHC/PArr.hs                         |   37 -
 libraries/base/base.cabal                          |    1 -
 libraries/dph                                      |    1 -
 libraries/primitive                                |    1 -
 libraries/vector                                   |    1 -
 packages                                           |    6 +-
 testsuite/tests/dph/Makefile                       |    3 -
 testsuite/tests/dph/classes/DefsVect.hs            |   53 -
 testsuite/tests/dph/classes/Main.hs                |   15 -
 testsuite/tests/dph/classes/Makefile               |    3 -
 .../tests/dph/classes/dph-classes-copy-fast.stdout |    1 -
 .../tests/dph/classes/dph-classes-vseg-fast.stdout |    1 -
 testsuite/tests/dph/classes/dph-classes.T          |    6 -
 testsuite/tests/dph/diophantine/DiophantineVect.hs |   39 -
 testsuite/tests/dph/diophantine/Main.hs            |   42 -
 testsuite/tests/dph/diophantine/Makefile           |    3 -
 .../diophantine/dph-diophantine-copy-fast.stdout   |    3 -
 .../diophantine/dph-diophantine-copy-opt.stdout    |    3 -
 testsuite/tests/dph/diophantine/dph-diophantine.T  |   11 -
 testsuite/tests/dph/dotp/DotPVect.hs               |   15 -
 testsuite/tests/dph/dotp/Main.hs                   |   54 -
 testsuite/tests/dph/dotp/Makefile                  |    3 -
 testsuite/tests/dph/dotp/dph-dotp-copy-fast.stdout |    2 -
 testsuite/tests/dph/dotp/dph-dotp-copy-opt.stdout  |    2 -
 testsuite/tests/dph/dotp/dph-dotp-vseg-fast.stdout |    2 -
 testsuite/tests/dph/dotp/dph-dotp-vseg-opt.stdout  |    2 -
 testsuite/tests/dph/dotp/dph-dotp.T                |   20 -
 testsuite/tests/dph/enumfromto/EnumFromToP.hs      |   24 -
 testsuite/tests/dph/enumfromto/Makefile            |    3 -
 testsuite/tests/dph/enumfromto/dph-enumfromto.T    |    4 -
 testsuite/tests/dph/modules/ExportList.hs          |   33 -
 testsuite/tests/dph/modules/Makefile               |    3 -
 .../dph/modules/dph-ExportList-vseg-fast.stderr    |    9 -
 testsuite/tests/dph/modules/dph-modules.T          |    4 -
 testsuite/tests/dph/nbody/Body.hs                  |   85 --
 testsuite/tests/dph/nbody/Config.hs                |   50 -
 testsuite/tests/dph/nbody/Dump.hs                  |   46 -
 testsuite/tests/dph/nbody/Generate.hs              |   98 --
 testsuite/tests/dph/nbody/Main.hs                  |  103 --
 testsuite/tests/dph/nbody/Makefile                 |    3 -
 testsuite/tests/dph/nbody/Randomish.hs             |   82 --
 testsuite/tests/dph/nbody/Solver.hs                |  156 ---
 testsuite/tests/dph/nbody/Types.hs                 |   52 -
 testsuite/tests/dph/nbody/Util.hs                  |   18 -
 testsuite/tests/dph/nbody/World.hs                 |   47 -
 .../tests/dph/nbody/dph-nbody-copy-fast.stdout     |  100 --
 .../tests/dph/nbody/dph-nbody-copy-opt.stdout      |  100 --
 .../tests/dph/nbody/dph-nbody-vseg-fast.stdout     |  100 --
 .../tests/dph/nbody/dph-nbody-vseg-opt.stdout      |  100 --
 testsuite/tests/dph/nbody/dph-nbody.T              |   19 -
 testsuite/tests/dph/primespj/Main.hs               |   30 -
 testsuite/tests/dph/primespj/Makefile              |    3 -
 testsuite/tests/dph/primespj/PrimesVect.hs         |   25 -
 .../dph/primespj/dph-primespj-copy-fast.stdout     |    3 -
 .../dph/primespj/dph-primespj-copy-opt.stdout      |    3 -
 .../dph/primespj/dph-primespj-vseg-fast.stdout     |    3 -
 .../dph/primespj/dph-primespj-vseg-opt.stdout      |    3 -
 testsuite/tests/dph/primespj/dph-primespj.T        |   11 -
 testsuite/tests/dph/quickhull/Main.hs              |   43 -
 testsuite/tests/dph/quickhull/Makefile             |    3 -
 testsuite/tests/dph/quickhull/QuickHullVect.hs     |   41 -
 testsuite/tests/dph/quickhull/SVG.hs               |   34 -
 testsuite/tests/dph/quickhull/TestData.hs          |   92 --
 testsuite/tests/dph/quickhull/Types.hs             |   33 -
 .../dph/quickhull/dph-quickhull-copy-fast.stdout   | 1019 ----------------
 .../dph/quickhull/dph-quickhull-copy-opt.stdout    | 1019 ----------------
 .../dph/quickhull/dph-quickhull-vseg-fast.stdout   | 1019 ----------------
 .../dph/quickhull/dph-quickhull-vseg-opt.stdout    | 1019 ----------------
 testsuite/tests/dph/quickhull/dph-quickhull.T      |   20 -
 testsuite/tests/dph/smvm/Main.hs                   |   60 -
 testsuite/tests/dph/smvm/Makefile                  |    3 -
 testsuite/tests/dph/smvm/SMVMVect.hs               |   17 -
 testsuite/tests/dph/smvm/dph-smvm-copy.stdout      |    1 -
 testsuite/tests/dph/smvm/dph-smvm-vseg.stdout      |    1 -
 testsuite/tests/dph/smvm/dph-smvm.T                |   41 -
 testsuite/tests/dph/smvm/result-i386.txt           |  101 --
 testsuite/tests/dph/smvm/result-sparc.txt          |  101 --
 testsuite/tests/dph/smvm/result-x86_64.txt         |  101 --
 testsuite/tests/dph/smvm/test-i386.dat             |  Bin 22384 -> 0 bytes
 testsuite/tests/dph/smvm/test-sparc.dat            |  Bin 11632 -> 0 bytes
 testsuite/tests/dph/smvm/test-x86_64.dat           |  Bin 16416 -> 0 bytes
 testsuite/tests/dph/sumnats/Main.hs                |   21 -
 testsuite/tests/dph/sumnats/Makefile               |    3 -
 testsuite/tests/dph/sumnats/SumNatsVect.hs         |   14 -
 .../tests/dph/sumnats/dph-sumnats-copy.stdout      |    3 -
 .../tests/dph/sumnats/dph-sumnats-vseg.stdout      |    3 -
 testsuite/tests/dph/sumnats/dph-sumnats.T          |   20 -
 testsuite/tests/dph/words/Main.hs                  |   37 -
 testsuite/tests/dph/words/Makefile                 |    3 -
 testsuite/tests/dph/words/WordsVect.hs             |  125 --
 .../tests/dph/words/dph-words-copy-fast.stdout     |    3 -
 .../tests/dph/words/dph-words-copy-opt.stdout      |    3 -
 .../tests/dph/words/dph-words-vseg-fast.stdout     |    3 -
 .../tests/dph/words/dph-words-vseg-opt.stdout      |    3 -
 testsuite/tests/dph/words/dph-words.T              |   20 -
 testsuite/tests/ghc-api/T9015.hs                   |    1 -
 testsuite/tests/ghc-api/T9015.stdout               |    4 +-
 testsuite/tests/ghci/should_run/T7253.script       |    1 -
 testsuite/tests/ghci/should_run/T7253.stderr       |    2 +-
 .../parser/should_compile/DumpRenamedAst.stderr    |    1 -
 .../tests/parser/should_compile/T14189.stderr      |    1 -
 utils/ghctags/Main.hs                              |    1 -
 utils/haddock                                      |    2 +-
 validate                                           |    6 -
 208 files changed, 98 insertions(+), 16493 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 faee23bb69ca813296da484bc177f4480bcaee9f


More information about the ghc-commits mailing list