wybe icon indicating copy to clipboard operation
wybe copied to clipboard

Add compiler flags to control the LLVM compiler optimisations

Open jimbxb opened this issue 2 years ago • 1 comments

As the title says.

This really comes in two stages

  • COMPLETED -O
    • Handle one flag, -O which is like that of, e,g., GHC, GCC, where you control a curated set of passes
    • LLVM has such curated pass sets, so this is the simplest stage to support
  • -f
    • -f flags, e.g., -ffast-math, are much more general, being switches for each particular optimisation
    • this one seems much harder to do

Another point of note is to see if this -O0 flag would be equivalent to the --no-llvm-opt flag (#266)

jimbxb avatar Mar 31 '22 05:03 jimbxb

Re-opening for the possibility of having more flags

jimbxb avatar Apr 02 '22 01:04 jimbxb