Skip to content

Add `Opt_ConstantFolding` to turn on constant folding (#20500)

Gergő Érdi requested to merge cactus/ghc:pr/cactus/issue-20500 into master

Finish what we started in !6999 (closed): remove optLevel completely from DynFlags, and only use it while processing CLI options. The Core-to-Core optimization pipeline always has the same shape now, with individual passes included or not based on individual optimization flags. One new optimization flag -fconstant-folding is needed to fully restore the previous -O1 behaviour.

Merge request reports