public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/58529] New: Loop 30% faster with Intel than with GCC
@ 2013-09-25 13:06 burnus at gcc dot gnu.org
  2013-09-25 13:07 ` [Bug middle-end/58529] " burnus at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-09-25 13:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58529
           Summary: Loop 30% faster with Intel than with GCC
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
              Host: x86-64-gnu-linux

Created attachment 30893
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30893&action=edit
Test file

The Intel icpc 13.1.1 compiler generates code which is 30% faster than GCC 4.9
for the following function (see test2.cc):

  the_bins_size = 0;
  for (int i = 0; i < arraylength; i++) {
    if (coordexist[i]) {
      the_bins[the_bins_size] = i;
      coordexist[i] = the_bins_size++;
    }
  }

GCC: real 0m2.493s   user 0m2.491s  sys 0m0.002s  -funroll-loops
GCC: real 0m1.494s   user 0m1.493s  sys 0m0.000s
ICC: real 0m1.160s   user 0m1.157s  sys 0m0.001s

The main function (test.main.cc) has been compiled with g++; used system:
Intel(R) Xeon(R) CPU E5-2630, CentOS 6/x86-64-gnu-linux, glibc-2.12.

g++ -march=native -fno-rtti -fno-exceptions -Ofast -std=c++
icpc -O3 -no-prec-div -xHost -fno-rtti -fno-exceptions


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

end of thread, other threads:[~2013-10-11  7:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-25 13:06 [Bug middle-end/58529] New: Loop 30% faster with Intel than with GCC burnus at gcc dot gnu.org
2013-09-25 13:07 ` [Bug middle-end/58529] " burnus at gcc dot gnu.org
2013-09-25 13:08 ` burnus at gcc dot gnu.org
2013-09-25 14:04 ` glisse at gcc dot gnu.org
2013-09-25 14:59 ` burnus at gcc dot gnu.org
2013-09-25 17:53 ` glisse at gcc dot gnu.org
2013-09-25 19:35 ` glisse at gcc dot gnu.org
2013-09-25 20:20 ` hjl.tools at gmail dot com
2013-09-26  6:00 ` burnus at gcc dot gnu.org
2013-09-26  7:26 ` [Bug target/58529] GCC -funroll-loops 150% slower with -march=native on x86-64 burnus at gcc dot gnu.org
2013-09-26  7:36 ` burnus at gcc dot gnu.org
2013-10-11  7:51 ` 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).