https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109943
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So the reason why it took into fre3 (the second fre) without __builtin_unreachable is that we need until then as `c` is not turned into a constant pointer until then. The turning into a static const var happens in the ipa_reference class. I wonder if we could do a simplier version earlier like say before any optimizations happen. This would allow this to be optimized even in fre1. Might also improve the situtation in general.