This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/48783] ~0ULL % (a / (a & -a)) == 0 is not optimized to false on the tree level
- 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: Sun, 29 Jan 2012 01:44:28 +0000
- Subject: [Bug tree-optimization/48783] ~0ULL % (a / (a & -a)) == 0 is not optimized to false on the tree level
- Auto-submitted: auto-generated
- References: <bug-48783-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48783
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization, TREE
Target|Arm |
Last reconfirmed|2011-05-31 22:28:11 |2012-01-28
Component|c |tree-optimization
Summary|ARM: kernel compiled at -O2 |~0ULL % (a / (a & -a)) == 0
|has a unused reference to |is not optimized to false
|__aeabi_uldivmod |on the tree level
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-29 01:44:28 UTC ---
~0ULL % (a / (a & -a)) == 0
Is not optimized to false on the tree level.
Basically we should figure that out and we would then remove the reference to
the uldivmod libcall.