https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106943

--- Comment #16 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
(In reply to Alexander Monakov from comment #14)
> (In reply to Jan Hubicka from comment #13)
> > Indeed it is quite long time problem with clang not building with lifetime
> > DSE and strict aliasing.  I wonder why this is not fixed on clang side?
> 
> Because the problems were not communicated? I knew that Firefox needed
> -flifetime-dse=1, but it's the first time I hear that any such problems in
> Clang/LLVM were identified.
> 
> I could not find any workaround for lifetime-dse in SUSE spec file for
> llvm16. Are you saying it was known and worked around somehow? Or it is not
> manifesting because LLVM is built without LTO?

I guess it's because the "official" way to build LLVM with LTO is performing a
2-stage bootstrap and only enable LTO for stage 2 [1], and LLVM/Clang performs
lifetime DSE less aggressively so it does not break itself...

[1]: https://releases.llvm.org/16.0.0/docs/BuildingADistribution.html

Reply via email to