public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/19104] New: in range test not noticed
@ 2004-12-21 11:42 nathan at gcc dot gnu dot org
  2004-12-21 11:43 ` [Bug tree-optimization/19104] " nathan at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-12-21 11:42 UTC (permalink / raw)
  To: gcc-bugs

The attached test case contains two equivalent functions.  The second one
produces better code, because it has been manually CSE'd.  The problem is that
fold-const is doing the conversion of 'a ==V1 || a == V2' (V2 == V1 + 1) into
'(a - V1) <= (V2 - V1)', but that can't be done until we spot that both RHS of
the && are identical.

Death to fold-const!

-- 
           Summary: in range test not noticed
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nathan at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2014-12-09 15:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-19104-4@http.gcc.gnu.org/bugzilla/>
2012-02-08 20:48 ` [Bug tree-optimization/19104] in range test not noticed pinskia at gcc dot gnu.org
2014-12-09 15:08 ` mpolacek at gcc dot gnu.org
2004-12-21 11:42 [Bug tree-optimization/19104] New: " nathan at gcc dot gnu dot org
2004-12-21 11:43 ` [Bug tree-optimization/19104] " nathan at gcc dot gnu dot org
2004-12-21 11:44 ` nathan at gcc dot gnu dot org
2004-12-21 15:55 ` pinskia at gcc dot gnu dot org
2005-07-26 13:14 ` dberlin 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).