https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106804
--- Comment #3 from anthony.mikh at yandex dot ru ---
(In reply to Andrew Pinski from comment #2)
> Clang use of cmov also might produce worse code
That's exactly why I wrote "seemingly worse". However, the approach used by
clang uses less regis
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106804
Bug ID: 106804
Summary: Poor codegen for selecting and incrementing value
behind a reference
Product: gcc
Version: 12.2.0
Status: UNCONFIRMED
Severity: normal