Re: [Mesa-dev] [PATCH] meson: enable -fmerge-all-constants by default

2018-07-25 Thread Konstantin Kharlamov
FWIW I just realized it also enables -fmerge-constants which is enabled at all optimize levels, and built/compared it with fmerge-all-constants. The difference is still noticeable. If anybody interested, I can pretty-format it, and send here. On 25.07.2018 14:03, Konstantin Kharlamov wrote: T

[Mesa-dev] [PATCH] meson: enable -fmerge-all-constants by default

2018-07-25 Thread Konstantin Kharlamov
This is a standard non-conforming optimization, which, quoting, "…considers e.g. even constant initialized arrays or initialized constant variables with integral or floating-point types. Languages like C or C++ require each variable, including multiple instances of the same variable in recursive ca