public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/31029]  New: missed otimization
@ 2007-03-02 19:36 jv244 at cam dot ac dot uk
  2007-03-02 20:04 ` [Bug tree-optimization/31029] missed optimization pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-03-02 19:36 UTC (permalink / raw)
  To: gcc-bugs

the following is tiny missed optimization, as it fails to link at -O3

read(5,*) igmin
DO ig=igmin,0
   ig2=1-ig
   if (ig.EQ.ig2) CALL link_error()
ENDDO
END

since ig can only have values in the interval [-huge,0], ig2 can only have
values in [1,huge] and so ig can never be equal to ig2. Code similar to this
appears in PR 31021


-- 
           Summary: missed otimization
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


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


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

end of thread, other threads:[~2009-03-31 14:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-02 19:36 [Bug tree-optimization/31029] New: missed otimization jv244 at cam dot ac dot uk
2007-03-02 20:04 ` [Bug tree-optimization/31029] missed optimization pinskia at gcc dot gnu dot org
2007-05-06 15:26 ` jv244 at cam dot ac dot uk
2007-06-20 21:53 ` fxcoudert at gcc dot gnu dot org
2007-06-21  4:08 ` jv244 at cam dot ac dot uk
2008-08-28 15:41 ` jv244 at cam dot ac dot uk
2008-11-02 16:09 ` [Bug middle-end/31029] Fold does not fold a + C == a rguenth at gcc dot gnu dot org
2008-11-02 18:25 ` [Bug middle-end/31029] Fold does not fold C - a " rguenth at gcc dot gnu dot org
2008-11-11  6:01 ` jv244 at cam dot ac dot uk
2009-03-31 14:28 ` rguenth at gcc dot gnu dot org
2009-03-31 14:29 ` 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).