This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/34417] simplify '(x & A) % B' if 'B > A/2'


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]