[Bug tree-optimization/103535] [missed optimization] remainder-of-2 with subtract-1
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 2 22:35:45 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103535
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=103216
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I have a patch which gets the optimized code (at least being able to generate
at the rtl level):
_1 = p_3(D) & 1;
_7 = _1 != 0;
_6 = (unsigned int) _7;
_9 = p_3(D) - _6;
movl %edi, %eax
andl $-2, %eax
ret
The patch is the one for PR 103216.
More information about the Gcc-bugs
mailing list