public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/44612]  New: -flto -fwhole-program: Never read variable not optimized away
@ 2010-06-21 15:17 burnus at gcc dot gnu dot org
  2010-06-21 15:17 ` [Bug middle-end/44612] " burnus at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-06-21 15:17 UTC (permalink / raw)
  To: gcc-bugs

Follow up to PR 41137.

Using the Intel compiler, the following program takes 0s for the loops (real
time: 0.005s); however, with
 gfortran -fdump-tree-original -fwhole-program -flto -ffast-math -march=native
-O3 cont.f90
GCC needs 1.142s.

Expected:
* GCC also optimizes the loops away if the variable "a" is never read (but only
set)


Removing the !! comments prevents ifort from optimizing the loops away; still
the performance is with (real time) 0.650s twice as good as the one of GCC.


-- 
           Summary: -flto -fwhole-program: Never read variable not optimized
                    away
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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

end of thread, other threads:[~2020-08-31  9:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-21 15:17 [Bug middle-end/44612] New: -flto -fwhole-program: Never read variable not optimized away burnus at gcc dot gnu dot org
2010-06-21 15:17 ` [Bug middle-end/44612] " burnus at gcc dot gnu dot org
2010-06-22 11:19 ` rguenth at gcc dot gnu dot org
2010-06-22 11:37 ` jakub at gcc dot gnu dot org
2010-06-22 12:26 ` burnus at gcc dot gnu dot org
2010-06-22 13:15 ` burnus at gcc dot gnu dot org
2010-06-22 13:46 ` rguenth at gcc dot gnu dot org
2010-06-22 14:12 ` jakub at gcc dot gnu dot org
     [not found] <bug-44612-4@http.gcc.gnu.org/bugzilla/>
2020-08-31  9:31 ` burnus 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).