Description
Compiler plugin for common subexpression elimination.
Description
This library is a conversion of GHC's internal Common Subexpression Elimination pass for Core to a compiler plugin. See the included test for an example of how to enable it.
README.md
GHC plugin for Common Subexpression Elimination (CSE)
This plugin gives an example of defining a compiler plugin for GHC. The implementation of this optimization is ripped directly from GHC itself.
travis-ci.org results:
Installation
Install the latest version of the plugin from Hackage (requires GHC 7.4.1):
$ cabal install cse-ghc-plugin
Join in
File bugs in the GitHub issue tracker.
Master git repository:
git clone https://github.com/thoughtpolice/cse-ghc-plugin.git
There's also a BitBucket mirror:
git clone https://bitbucket.org/thoughtpolice/cse-ghc-plugin.git
Authors
See AUTHORS.txt.
License
BSD3. See LICENSE.txt
for terms of copyright and redistribution.