This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/34417] simplify '(x & A) % B' if 'B > A/2'
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 27 Feb 2012 03:38:48 +0000
- Subject: [Bug tree-optimization/34417] simplify '(x & A) % B' if 'B > A/2'
- Auto-submitted: auto-generated
- References: <bug-34417-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34417
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-27 03:38:48 UTC ---
(In reply to comment #1)
> Confirmed.
>
> VRP could do this, though we generally avoid creating control flow and extra
> basic blocks here.
We could create a COND_EXPR here, though I don't know if that would be a good
idea on some targets.