https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95852
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-01-07
Ever confirmed|0 |1
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Status|UNCONFIRMED |ASSIGNED
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 49913
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49913&action=edit
gcc11-pr95852-wip.patch
Untested WIP patch. This handles the transformation to mullo but doesn't yet
optimize away the x != 0 && (which can be done of course only if the x != 0
guarded basic block contains only specific statements we'd need to pattern
recognize.
Furthermore, signed multiplication can be handled similarly, but it will need
even more work because of the casts.