• Joachim Breitner's avatar
    Add a CSE pass to Stg (#9291) · 19d5c731
    Joachim Breitner authored
    This CSE pass only targets data constructor applications. This is
    probably the best we can do, as function calls and primitive operations
    might have side-effects.
    Introduces the flag -fstg-cse, enabled by default with -O for now. It
    might also be a good candiate for -O2.
    Differential Revision: https://phabricator.haskell.org/D2871
DynFlags.hs 213 KB