https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64858
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Right, thanks for the notice. And, my debugging of this lead to quite similar patch and that is pretty much what ipa-pure-const.c does too.