Hacker News new | ask | show | jobs
by saagarjha 1253 days ago
> LTO is aggressive by nature, and there’s no guarantee that all parts of the project will react nicely to it. In this case, the problem was Qt, the UI looked completely garbled.

Curious how LTO broke this…

2 comments

Very interesting isn't it.

So LTO would remove code it considers unreachable (but really whole functions)? And that did it rather than reshuffling code for cache purposes (which is what LTO does in my mind).

Cant LTO just be turned off for the QT objects in the interim?

This is pretty damning to me. An optimization that unsound is crazy scary.