public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/48405] New: Handle expressions in DO loops for front-end optimization
@ 2011-04-01 19:36 tkoenig at gcc dot gnu.org
  2011-04-01 20:01 ` [Bug fortran/48405] " steven at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2011-04-01 19:36 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Handle expressions in DO loops for front-end
                    optimization
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: tkoenig@gcc.gnu.org
        ReportedBy: tkoenig@gcc.gnu.org


After the fix for PR 48352, expressions like

do i=1,min(f(),f())
end do

are not handled in function removal.


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

* [Bug fortran/48405] Handle expressions in DO loops for front-end optimization
  2011-04-01 19:36 [Bug fortran/48405] New: Handle expressions in DO loops for front-end optimization tkoenig at gcc dot gnu.org
@ 2011-04-01 20:01 ` steven at gcc dot gnu.org
  2011-04-19  5:19 ` tkoenig at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: steven at gcc dot gnu.org @ 2011-04-01 20:01 UTC (permalink / raw)
  To: gcc-bugs

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

Steven Bosscher <steven at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |steven at gcc dot gnu.org

--- Comment #1 from Steven Bosscher <steven at gcc dot gnu.org> 2011-04-01 20:01:30 UTC ---
At what point is code just programmed too stupid to bother with? :-)


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

* [Bug fortran/48405] Handle expressions in DO loops for front-end optimization
  2011-04-01 19:36 [Bug fortran/48405] New: Handle expressions in DO loops for front-end optimization tkoenig at gcc dot gnu.org
  2011-04-01 20:01 ` [Bug fortran/48405] " steven at gcc dot gnu.org
@ 2011-04-19  5:19 ` tkoenig at gcc dot gnu.org
  2011-04-21 19:23 ` tkoenig at gcc dot gnu.org
  2011-04-22 12:05 ` tkoenig at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2011-04-19  5:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-04-19 05:19:12 UTC ---
Created attachment 24039
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24039
Proposed patch

This should work (and also fix some other bugs as well).


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

* [Bug fortran/48405] Handle expressions in DO loops for front-end optimization
  2011-04-01 19:36 [Bug fortran/48405] New: Handle expressions in DO loops for front-end optimization tkoenig at gcc dot gnu.org
  2011-04-01 20:01 ` [Bug fortran/48405] " steven at gcc dot gnu.org
  2011-04-19  5:19 ` tkoenig at gcc dot gnu.org
@ 2011-04-21 19:23 ` tkoenig at gcc dot gnu.org
  2011-04-22 12:05 ` tkoenig at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2011-04-21 19:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-04-21 19:23:36 UTC ---
Author: tkoenig
Date: Thu Apr 21 19:23:34 2011
New Revision: 172838

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172838
Log:
2011-04-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/48405
    * frontend_passes (cfe_register_funcs): Remove workaround for DO
    loops.
    (gfc_code_walker):  Make sure the pointer to the current
    statement doen't change when other statements are inserted.

2011-04-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/48405
    * gfortran.dg/function_optimize_6.f90:  New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/function_optimize_6.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/frontend-passes.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug fortran/48405] Handle expressions in DO loops for front-end optimization
  2011-04-01 19:36 [Bug fortran/48405] New: Handle expressions in DO loops for front-end optimization tkoenig at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-04-21 19:23 ` tkoenig at gcc dot gnu.org
@ 2011-04-22 12:05 ` tkoenig at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2011-04-22 12:05 UTC (permalink / raw)
  To: gcc-bugs

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-04-22 12:05:05 UTC ---
Fixed, closing.


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

end of thread, other threads:[~2011-04-22 12:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-01 19:36 [Bug fortran/48405] New: Handle expressions in DO loops for front-end optimization tkoenig at gcc dot gnu.org
2011-04-01 20:01 ` [Bug fortran/48405] " steven at gcc dot gnu.org
2011-04-19  5:19 ` tkoenig at gcc dot gnu.org
2011-04-21 19:23 ` tkoenig at gcc dot gnu.org
2011-04-22 12:05 ` tkoenig at gcc dot gnu.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).