This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15784] New: fold misses bitwise optimization
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2004 20:45:34 -0000
- Subject: [Bug tree-optimization/15784] New: fold misses bitwise optimization
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
int f(int x)
{
return x & ~x; // should be 0 before getting to the RTL level
}
int h(int x)
{
return x | ~x; // should be -1 before getting to the RTL level
}
--
Summary: fold misses bitwise optimization
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Keywords: missed-optimization, TREE
Severity: enhancement
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15784