r179216 - [driver] Add a -Ofast option, which enables -O3, -ffast-math, and

Eric Christopher echristo at gmail.com
Wed Apr 10 16:05:10 PDT 2013


On Wed, Apr 10, 2013 at 4:02 PM, Chad Rosier <mcrosier at apple.com> wrote:
>
> On Apr 10, 2013, at 3:56 PM, Eric Christopher <echristo at gmail.com> wrote:
>
> On Wed, Apr 10, 2013 at 2:26 PM, Chad Rosier <mcrosier at apple.com> wrote:
>
> Author: mcrosier
> Date: Wed Apr 10 16:26:02 2013
> New Revision: 179216
>
> URL: http://llvm.org/viewvc/llvm-project?rev=179216&view=rev
> Log:
> [driver] Add a -Ofast option, which enables -O3, -ffast-math, and
> -fstrict-aliasing.
> rdar://13622687
>
>
> Really? Why not -Ospec? or any other naming? :)
>
>
> Well, gcc supports a flag by the same name with the same basic definition,
> per Evan.
>

Yep. Just noticed thanks to Dan:

http://gcc.gnu.org/ml/gcc/2010-05/msg00099.html

> Personally, I wanted -Obombdiggity, but Evan was against it.. j/k!
>

I absolutely support this proposal. Make it so. :)

> Can you elaborate as to why we need this? ;)
>
>
> Basically, the flag is designed for getting the max performance out of CPU
> benchmarks.
>

Yeah, I know, was mostly just the "why on earth do we need this meta
flag", but compatibility with bizarre gcc flag works ;)

-eric



More information about the cfe-commits mailing list