public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/27109]  New: Simplify "a - 10 > 150" into "a > 160" when range of a is known (in VRP or somewhere else)
@ 2006-04-11  2:04 pinskia at gcc dot gnu dot org
  2006-04-11  2:04 ` [Bug tree-optimization/27109] " pinskia at gcc dot gnu dot org
  2006-12-28 12:03 ` rguenth at gcc dot gnu dot org
  0 siblings, 2 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-11  2:04 UTC (permalink / raw)
  To: gcc-bugs

Kinda like PR 14490 but for the -fwrapv and unsigned cases:

void bar (void);

void
foo (unsigned a)
{
  if (a < 100)
    return;
  if (200 < a)
    return;

  if (a - 10 > 150)
    bar ();
}


-- 
           Summary: Simplify "a - 10 > 150" into "a > 160" when range of a
                    is known (in VRP or somewhere else)
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27109


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

end of thread, other threads:[~2023-08-09 21:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-27109-4@http.gcc.gnu.org/bugzilla/>
2012-12-04 18:48 ` [Bug tree-optimization/27109] Simplify "a - 10 > 150" into "a > 160" when range of a is known (in VRP or somewhere else) glisse at gcc dot gnu.org
2021-06-03  3:27 ` pinskia at gcc dot gnu.org
2021-06-03 13:25 ` amacleod at redhat dot com
2021-08-07 22:38 ` pinskia at gcc dot gnu.org
2021-08-07 22:39 ` pinskia at gcc dot gnu.org
2023-08-09 21:51 ` pinskia at gcc dot gnu.org
2006-04-11  2:04 [Bug tree-optimization/27109] New: " pinskia at gcc dot gnu dot org
2006-04-11  2:04 ` [Bug tree-optimization/27109] " pinskia at gcc dot gnu dot org
2006-12-28 12:03 ` 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).