[llvm-dev] [GlobalISel][AArch64] Toward flipping the switch for O0: Please give it a try!

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Mon Apr 3 09:24:28 PDT 2017

On 30 March 2017 at 08:44, Diana Picus via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Just a heads-up for anyone building things with CMake: if you use the
> default build type (Release), it will put CMAKE_CXX_FLAGS_RELEASE
> after the CMAKE_CXX_FLAGS, so you'll end up running -O3 instead of
> -O0. You might want to check your command lines.

It does actually work if you add "-fno-vectorize -fno-slp-vectorize"
to CMAKE_CXX_FLAGS_RELASE (and C). Not a standard configuration, but
probably throwing more varied IR at it than just doing -O0.



More information about the llvm-dev mailing list