[cfe-commits] r165240 - in /cfe/trunk: include/clang/Driver/ToolChain.h lib/Driver/ToolChain.cpp lib/Driver/Tools.cpp test/Driver/Inputs/basic_linux_tree/usr/lib/gcc/x86_64-unknown-linux/4.6.0/crtfastmath.o test/Driver/linux-ld.c

Tobias Grosser tobias at grosser.es
Thu Oct 4 13:01:57 PDT 2012


On 10/04/2012 09:42 PM, Benjamin Kramer wrote:
> Author: d0k
> Date: Thu Oct  4 14:42:20 2012
> New Revision: 165240
>
> URL: http://llvm.org/viewvc/llvm-project?rev=165240&view=rev
> Log:
> Driver: Link crtfastmath.o if it's available and -ffast-math is specified.
>
> crtfastmath.o contains routines to set the floating point flags to a faster,
> unsafe mode. Linking it in speeds up code dealing with denormals significantly
> (PR14024).
>
> For now this is only enabled on linux where I can test it and crtfastmath.o is
> widely available. We may want to provide a similar file with compiler-rt
> eventually and/or enable it on other platforms too.

Wow, this was fast! Thanks a lot!

Tobi




More information about the cfe-commits mailing list