@pervognsen Yeah, the only time I have actually seen compiler bugs with LTO was when we were LTOing a mixture of v8-M Main and Base in the RP2350 ROM. Even that was ICEs instead of miscompiles.
That said I am currently working with a large embedded firmware codebase that has issues under LTO, and it's pretty annoying to track down given there is no way of running it off-target, so things like ubsan are not an option.
LTO also makes the disassembly way more annoying to read, which unfortunately I care about quite a bit if I'm down in the weeds doing hardware debug.
@pervognsen at one point Mesa had strict aliasing turned off but they turned it back in recent years so that might be still an issue.
A good example of alaising issue and lto. I fixed a strict aliasing issue in gcc sources in 2011 (PR48981) which was exposed by lto, just happens spec 2017 chose a gcc that was older than that too and every once in a while (like last year), we get a report of gcc in spec failing with lto if using strict aliasing but only with the new enough gcc.
It is just funny how I fixed it almost 15 years ago now too.