public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/37541]  New: VRP fails to optimize single-bit ranges
@ 2008-09-16 12:37 rguenth at gcc dot gnu dot org
  2010-07-28 14:43 ` [Bug tree-optimization/37541] " rguenth at gcc dot gnu dot org
  0 siblings, 1 reply; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-16 12:37 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-29 13:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-37541-4@http.gcc.gnu.org/bugzilla/>
2012-06-29 13:57 ` [Bug tree-optimization/37541] VRP fails to optimize single-bit ranges rguenth at gcc dot gnu.org
2012-06-29 13:58 ` rguenth at gcc dot gnu.org
2008-09-16 12:37 [Bug tree-optimization/37541] New: " rguenth at gcc dot gnu dot org
2010-07-28 14:43 ` [Bug tree-optimization/37541] " rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).