Skip to content
  • Cheng Shao's avatar
    04ea3f83
    compiler: use -O3 as LLVM optimization level for ghc -O2 · 04ea3f83
    Cheng Shao authored and Marge Bot's avatar Marge Bot committed
    The GHC driver clamps LLVM optimization level to `-O2` due to LLVM
    crashes, but those were historical issues many years ago that are no
    longer relevant for LLVM versions we support today. This patch changes
    the driver to use `-O3` as LLVM optimization level when compiling with
    `-O2`, which is a better default when we're willing to trade
    compilation time for faster generated code.
    04ea3f83
    compiler: use -O3 as LLVM optimization level for ghc -O2
    Cheng Shao authored and Marge Bot's avatar Marge Bot committed
    The GHC driver clamps LLVM optimization level to `-O2` due to LLVM
    crashes, but those were historical issues many years ago that are no
    longer relevant for LLVM versions we support today. This patch changes
    the driver to use `-O3` as LLVM optimization level when compiling with
    `-O2`, which is a better default when we're willing to trade
    compilation time for faster generated code.
Loading