https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125706
Andrew Macleod <amacleod at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amacleod at redhat dot com
--- Comment #3 from Andrew Macleod <amacleod at redhat dot com> ---
Created attachment 64694
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64694&action=edit
potential patch
Yeah there are lots of potential exploits in operators that haven't been
explored.
The attached patch adds a refinement that given [a,b] % [x,y] that if all
possible quotients (Q) are the same, (ie a/y == b/x) then we can exploit the
observation that
m % n == m - Q * n
I'll run it through the testers.