Aggressive conditional inlining with ldc only, not dmd

jmh530 john.michael.hall at gmail.com
Mon Mar 26 21:11:12 UTC 2018


On Monday, 26 March 2018 at 18:47:17 UTC, Nordlöw wrote:
>
> Yes I am, thanks, via the dub spec
>
> buildType "release-nobounds" {
>           dflags "-mcpu=native" "-O3"
>           buildOptions "releaseMode" "optimize" "noBoundsCheck" 
> "inline"
> }
>
> I didn't measure any significant difference between -O and -O3.
>
> Is each optimization level `x` in `-Ox` defined in the same way 
> for clang and ldc? If so, where's the best documentation for it?

https://wiki.dlang.org/Using_LDC

-O is equivalent to -O3


More information about the Digitalmars-d-learn mailing list