https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106943
--- Comment #19 from Jan Hubicka <hubicka at ucw dot cz> --- > > Is there any need to over-engineer this like that? I would hope enabling > > -fno-lifetime-dse globally would not be controversial for LLVM It would be really nice to have the ranger bug fixed. Since lifetime DSE is all handled in C++ FE there is no good reason why it should not work to LTO togehter objects compiled with the flag and without... llvm is really nice benchmark for LTO and PGO, so it would be nice if it was not fragile and built with -O3 -flto. In my testing GCC produced binary with LTO+PGO is a lot smaller. It seems to also generate code faster but parsing is bit slower, which I think may be related to -fstrict-aliasing.