https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98817
--- Comment #2 from Antony Polukhin <antoshkka at gmail dot com> --- (In reply to Jakub Jelinek from comment #1) > I'm not sure about this. Turning it into an unconditional store would mean > that the memory the reference points to must be writable, that might not be > always the case. Fair pint. How about emitting cmov instead of cmp+je?