public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/34043]  New: Missed optimization causing extra loads and stores when using x86_64 builtin function together with aggregate types.
@ 2007-11-09 16:14 jsjodin at gcc dot gnu dot org
  2007-11-09 16:16 ` [Bug tree-optimization/34043] " jsjodin at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: jsjodin at gcc dot gnu dot org @ 2007-11-09 16:14 UTC (permalink / raw)
  To: gcc-bugs

Compile the attached file test.cpp with the following flags:
g++ -DNDEBUG -m32 -msse2 -O2 -msse2 -DSHOW_BUG gcc_bug.cpp -S

In the generated code there are useless stores and loads of %xmm0 to
-40(%eps) and -56(%eps).  If the code is compiled without -DSHOW_BUG
it will generate a more optimal version without the extra memory
accesses. See the attached generated files test_bad.s and test_good.s
for the resulting code. This is an old problem existing in 4.1.x.


-- 
           Summary: Missed optimization causing extra loads and stores when
                    using x86_64 builtin function together with aggregate
                    types.
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsjodin at gcc dot gnu dot org


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


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

end of thread, other threads:[~2008-03-14 16:17 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-09 16:14 [Bug tree-optimization/34043] New: Missed optimization causing extra loads and stores when using x86_64 builtin function together with aggregate types jsjodin at gcc dot gnu dot org
2007-11-09 16:16 ` [Bug tree-optimization/34043] " jsjodin at gcc dot gnu dot org
2007-11-09 16:16 ` jsjodin at gcc dot gnu dot org
2007-11-09 16:17 ` jsjodin at gcc dot gnu dot org
2007-11-09 18:24 ` pinskia at gcc dot gnu dot org
2007-11-13 17:07 ` jsjodin at gcc dot gnu dot org
2007-12-03 15:42 ` jsjodin at gcc dot gnu dot org
2007-12-09 22:34 ` pinskia at gcc dot gnu dot org
2007-12-13  1:57 ` jsjodin at gcc dot gnu dot org
2008-01-03 17:45 ` rguenth at gcc dot gnu dot org
2008-01-04 15:54 ` rguenth at gcc dot gnu dot org
2008-01-04 15:58 ` rguenth at gcc dot gnu dot org
2008-02-28 16:41 ` rguenth at gcc dot gnu dot org
2008-03-14 14:53 ` rguenth at gcc dot gnu dot org
2008-03-14 16:17 ` 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).