public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/45685]  New: GCC optimizer for Intel x64 generates inefficient code
@ 2010-09-16  1:17 ekuznetsov at divxcorp dot com
  2010-09-17 13:04 ` [Bug rtl-optimization/45685] [4.6 Regression] " hjl dot tools at gmail dot com
  2010-09-17 13:45 ` matz at gcc dot gnu dot org
  0 siblings, 2 replies; 27+ messages in thread
From: ekuznetsov at divxcorp dot com @ 2010-09-16  1:17 UTC (permalink / raw)
  To: gcc-bugs

I've attached two copies of a simple function. They are identical except for
the type of the internal variable (one uses 'int64_t', the other uses 'int').
When compiled with GCC 4.4.3 on a x64 platform using -O3 optimizations, the
assembly code for the first version will contain a conditional move instruction
'cmov', the second version will contain a branch. Since branches are extremely
slow, the second version ends up two times slower than the first version.


-- 
           Summary: GCC optimizer for Intel x64 generates inefficient code
           Product: gcc
           Version: 4.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ekuznetsov at divxcorp dot com


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


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

end of thread, other threads:[~2013-12-16 11:42 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-45685-4@http.gcc.gnu.org/bugzilla/>
2010-09-29 18:34 ` [Bug rtl-optimization/45685] [4.6 Regression] GCC optimizer for Intel x64 generates inefficient code rguenth at gcc dot gnu.org
2010-11-04 17:41 ` jakub at gcc dot gnu.org
2010-11-24 15:32 ` ebotcazou at gcc dot gnu.org
2010-11-24 15:56 ` jakub at gcc dot gnu.org
2010-11-24 16:10 ` rguenth at gcc dot gnu.org
2010-11-24 19:15 ` [Bug tree-optimization/45685] [4.6 Regression] missed conditional move opportunity in loop ebotcazou at gcc dot gnu.org
2010-11-25  1:41 ` ekuznetsov at divxcorp dot com
2010-11-25 11:16 ` rguenth at gcc dot gnu.org
2011-01-24 17:05 ` law at redhat dot com
2011-02-17 19:47 ` law at redhat dot com
2011-02-17 19:47 ` law at redhat dot com
2011-12-01 22:42 ` [Bug tree-optimization/45685] [4.6/4.7 " jakub at gcc dot gnu.org
2011-12-02  5:27 ` law at redhat dot com
2011-12-02  9:53 ` rguenth at gcc dot gnu.org
2012-03-22  9:31 ` [Bug tree-optimization/45685] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
2012-06-14  8:52 ` rguenth at gcc dot gnu.org
2012-09-20 10:27 ` jakub at gcc dot gnu.org
2013-03-13 20:47 ` steven at gcc dot gnu.org
2013-04-11  8:00 ` [Bug tree-optimization/45685] [4.6/4.7/4.8/4.9 " rguenth at gcc dot gnu.org
2013-12-11  6:16 ` [Bug tree-optimization/45685] [4.7/4.8/4.9 " law at redhat dot com
2013-12-13 16:34 ` law at gcc dot gnu.org
2013-12-13 16:35 ` law at redhat dot com
2013-12-16  9:54 ` ktkachov at gcc dot gnu.org
2013-12-16  9:55 ` ktkachov at gcc dot gnu.org
2013-12-16 11:42 ` ktkachov at gcc dot gnu.org
2010-09-16  1:17 [Bug rtl-optimization/45685] New: GCC optimizer for Intel x64 generates inefficient code ekuznetsov at divxcorp dot com
2010-09-17 13:04 ` [Bug rtl-optimization/45685] [4.6 Regression] " hjl dot tools at gmail dot com
2010-09-17 13:45 ` matz 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).