https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3507
Roger Sayle <roger at nextmovesoftware dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |roger at nextmovesoftware dot
com
--- Comment #73 from Roger Sayle <roger at nextmovesoftware dot com> ---
Created attachment 65830
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65830&action=edit
proof-of-concept patch
Hi Uros,
Here's my proof-of-concept patch, that instead of adding a compare, uses the
existing patterns that set instead of clobber the flags register. There are no
correctness regressions, but a few missed optimizations. I've a number of
middle-end patches that'll improve things further [thing like the previously
posted
https://gcc.gnu.org/pipermail/gcc-patches/2021-December/586572.html ].