public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "nbkolchin at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug regression/26658] New: perfomance regression between gcc 3.4.5 and 4.* Date: Sun, 12 Mar 2006 20:11:00 -0000 [thread overview] Message-ID: <bug-26658-12348@http.gcc.gnu.org/bugzilla/> (raw) During "bashmark" memory benchmark perfomance analyze, I found ~100x perfomance regression between gcc 3.4.5 and gcc 4.X. Compiler options: -march=athlon-xp -O3 test_cmd execution time: - GCC 3.4.5: 0.43user 0.00system 0:00.44elapsed - GCC 4.0.2: 34.83user 0.68system 0:36.09elapsed - GCC 4.1.0: 33.86user 0.58system 0:34.96elapsed Lurking inside assembler generation showed that GCC4 don't inline memcpy and memset calls. (I can attach assembler code on request) So, it looks like GCC4 inliner is broken at some point. --------- GCC 3.4.5 output------------------------------------------ Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/specs Configured with: /mnt/oktet/tmp/portage/gcc-3.4.5-r1/work/gcc-3.4.5/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.5 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include/g++-v3 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9) /usr/libexec/gcc/i686-pc-linux-gnu/3.4.5/cc1plus -E -quiet -v -D_GNU_SOURCE test_cmd.cpp -march=athlon-xp -O3 -o test_cmd.ii ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/include/libffi /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include/g++-v3 /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include/g++-v3/i686-pc-linux-gnu /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include/g++-v3/backward /usr/local/include /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include /usr/include End of search list. /usr/libexec/gcc/i686-pc-linux-gnu/3.4.5/cc1plus -fpreprocessed test_cmd.ii -quiet -dumpbase test_cmd.cpp -march=athlon-xp -auxbase test_cmd -O3 -version -o test_cmd.s GNU C++ version 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9) (i686-pc-linux-gnu) compiled by GNU C version 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9). GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129319 --------------------------------------------------- -----------GCC 4.0.2 output ----------------------- Using built-in specs. Target: i686-pc-linux-gnu Configured with: /mnt/oktet/tmp/portage/gcc-4.0.2-r3/work/gcc-4.0.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.0.2 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.0.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.0.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.0.2/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-nls --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.0.2 (Gentoo 4.0.2-r3, pie-8.7.8) /usr/libexec/gcc/i686-pc-linux-gnu/4.0.2/cc1plus -E -quiet -v -D_GNU_SOURCE test_cmd.cpp -march=athlon-xp -O3 -fpch-preprocess -o test_cmd.ii ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/include/libffi /usr/lib/gcc/i686-pc-linux-gnu/4.0.2/include/g++-v4 /usr/lib/gcc/i686-pc-linux-gnu/4.0.2/include/g++-v4/i686-pc-linux-gnu /usr/lib/gcc/i686-pc-linux-gnu/4.0.2/include/g++-v4/backward /usr/local/include /usr/lib/gcc/i686-pc-linux-gnu/4.0.2/include /usr/include End of search list. /usr/libexec/gcc/i686-pc-linux-gnu/4.0.2/cc1plus -fpreprocessed test_cmd.ii -quiet -dumpbase test_cmd.cpp -march=athlon-xp -auxbase test_cmd -O3 -version -o test_cmd.s GNU C++ version 4.0.2 (Gentoo 4.0.2-r3, pie-8.7.8) (i686-pc-linux-gnu) compiled by GNU C version 4.0.2 (Gentoo 4.0.2-r3, pie-8.7.8). GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129319 --------------------------------------------------- ----------GCC 4.1.0 output------------------------- Using built-in specs. Target: i686-pc-linux-gnu Configured with: /mnt/oktet/tmp/portage/gcc-4.1.0-r2/work/gcc-4.1.0/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.0 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --enable-java-awt=gtk --enable-languages=c,c++,java,objc,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.1.0 (Gentoo 4.1.0-r2, pie-8.7.8) /usr/libexec/gcc/i686-pc-linux-gnu/4.1.0/cc1plus -E -quiet -v -D_GNU_SOURCE test_cmd.cpp -march=athlon-xp -O3 -fpch-preprocess -o test_cmd.ii ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/../../../../i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/include/libffi /usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/g++-v4 /usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/g++-v4/i686-pc-linux-gnu /usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/g++-v4/backward /usr/local/include /usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include /usr/include End of search list. /usr/libexec/gcc/i686-pc-linux-gnu/4.1.0/cc1plus -fpreprocessed test_cmd.ii -quiet -dumpbase test_cmd.cpp -march=athlon-xp -auxbase test_cmd -O3 -version -o test_cmd.s GNU C++ version 4.1.0 (Gentoo 4.1.0-r2, pie-8.7.8) (i686-pc-linux-gnu) compiled by GNU C version 4.1.0 (Gentoo 4.1.0-r2, pie-8.7.8). GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129319 Compiler executable checksum: d3096f5bd00a04a18edac8d63d29a37f --------------------------------------------------- -- Summary: perfomance regression between gcc 3.4.5 and 4.* Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: regression AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: nbkolchin at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26658
next reply other threads:[~2006-03-12 20:11 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-03-12 20:11 nbkolchin at gmail dot com [this message] 2006-03-12 20:12 ` [Bug regression/26658] " nbkolchin at gmail dot com 2006-03-12 20:13 ` nbkolchin at gmail dot com 2006-03-12 20:14 ` nbkolchin at gmail dot com 2006-03-12 21:07 ` rguenth at gcc dot gnu dot org 2006-03-12 21:12 ` rguenth at gcc dot gnu dot org 2006-06-04 19:52 ` [Bug regression/26658] [4.0/4.1/4.2 Regression] " jsm28 at gcc dot gnu dot org 2006-06-04 19:56 ` [Bug target/26658] " pinskia at gcc dot gnu dot org 2006-07-05 17:52 ` mmitchel at gcc dot gnu dot org 2006-08-27 21:59 ` [Bug target/26658] [4.0/4.1/4.2 Regression] memcpy/memset are not inlining with -march=athlon-xp and size of 128 pinskia at gcc dot gnu dot org 2007-02-14 9:10 ` [Bug target/26658] [4.0/4.1/4.2/4.3 " mmitchel at gcc dot gnu dot org 2007-11-07 9:15 ` jakub at gcc dot gnu dot org 2008-01-13 15:42 ` [Bug target/26658] [4.1/4.2/4.3 " rguenth at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-26658-12348@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).