public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/23603] New: VRP does not say range for a in a = b == c; is [0,1]
@ 2005-08-28 17:22 pinskia at gcc dot gnu dot org
  2005-08-28 17:25 ` [Bug tree-optimization/23603] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-28 17:22 UTC (permalink / raw)
  To: gcc-bugs

Example:
int f(int i)
{
  int t = i == 1;
  int g = t == 2;
  int h = g == 3;
  return h;
}
We should convert this to return 0 on the tree level but currently we get:
return i == 1 == 2 == 3;
in final_cleanup

-- 
           Summary: VRP does not say range for a in a = b == c; is [0,1]
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          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=23603


^ permalink raw reply	[flat|nested] 14+ messages in thread
[parent not found: <bug-23603-6528@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-01-08 11:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-28 17:22 [Bug tree-optimization/23603] New: VRP does not say range for a in a = b == c; is [0,1] pinskia at gcc dot gnu dot org
2005-08-28 17:25 ` [Bug tree-optimization/23603] " pinskia at gcc dot gnu dot org
2005-08-28 18:03 ` pinskia at gcc dot gnu dot org
2005-08-28 19:43 ` pinskia at gcc dot gnu dot org
2005-08-29  2:14 ` pinskia at gcc dot gnu dot org
2005-10-01 14:19 ` dnovillo at gcc dot gnu dot org
     [not found] <bug-23603-6528@http.gcc.gnu.org/bugzilla/>
2005-10-03  0:43 ` pinskia at gcc dot gnu dot org
2005-10-03  2:39 ` pinskia at gcc dot gnu dot org
2005-10-04 19:44 ` pinskia at gcc dot gnu dot org
2005-10-23  0:06 ` pinskia at gcc dot gnu dot org
2006-08-21  6:11 ` pinskia at gcc dot gnu dot org
2007-01-07 17:44 ` rguenth at gcc dot gnu dot org
2007-01-08 11:20 ` rguenth at gcc dot gnu dot org
2007-01-08 11:21 ` 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).