common subexpression elimination plugin for GHC
Switch branches/tags
Nothing to show
Clone or download
thoughtpolice Version 0.1.1
Signed-off-by: Austin Seipp <>
Latest commit 0bbb969 Aug 8, 2012

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. results: Build Status



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

There's also a BitBucket mirror:

  • git clone


See AUTHORS.txt.


BSD3. See LICENSE.txt for terms of copyright and redistribution.