[Mesa-dev] [PATCH] mesa: Enable LTO compilation

Matt Turner mattst88 at gmail.com
Mon May 30 17:39:34 UTC 2016

On Mon, May 30, 2016 at 10:28 AM, ⚛ <0xe2.0x9a.0x9b at gmail.com> wrote:
> This patch enables compilation with -flto.
> The performance benefits of LTO (GCC 4.9 & 6.1) are about 1% for glxgears.
> Performance changes in OpenGL games haven't been measured yet, my feeling is
> that they are negligible.

Without a compelling reason, I don't think the build system should be
adding compiler flags like this.

-flto makes debugging impossible, at least the last time I tried it
with gcc. I don't think that's something we would want enabled
whenever it's supported.

More information about the mesa-dev mailing list