Stream: t-compiler/help

Topic: LTO passes in profile output

gizmondo (Dec 11 2019 at 23:23, on Zulip):

I've been wondering why "-Z time-passes" can show "LTO passes" lines even when LTO is not enabled? It's disabled by default, right?
I've seen them here - And I'm seeing lots of them on a toy program where they even take significant time (~25% if I interpret the results correctly).
Any ideas?

gizmondo (Dec 15 2019 at 12:10, on Zulip):

It's disabled by default, right?

Ok, I was wrong here, some LTO is performed by default in optimized builds when number of codegen units > 1.

Last update: Sep 18 2020 at 20:30UTC