This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/37541] New: VRP fails to optimize single-bit ranges
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Sep 2008 12:36:10 -0000
- Subject: [Bug tree-optimization/37541] New: VRP fails to optimize single-bit ranges
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcc.dg/tree-ssa/pr37508.c is XFAILed because of this.
struct foo1 {
int i:1;
};
int test1 (struct foo1 *x)
{
if (x->i == 0)
return 1;
else if (x->i == -1)
return 1;
return 0;
}
VRP should figure out that the function always returns 1.
--
Summary: VRP fails to optimize single-bit ranges
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: missed-optimization, xfail
Severity: enhancement
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37541