This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/30735] 50% slow down due to mem-ssa merge
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Feb 2007 17:01:13 -0000
- Subject: [Bug tree-optimization/30735] 50% slow down due to mem-ssa merge
- References: <bug-30735-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from hjl at lucon dot org 2007-02-08 17:01 -------
Created an attachment (id=13021)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13021&action=view)
A testcase
# /usr/gcc-good/bin/gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /net/gnu-13/export/gnu/src/gcc/gcc/configure
--enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --enable-shared
--enable-threads=posix --enable-haifa --enable-checking=assert
--prefix=/usr/gcc-4.3 --with-local-prefix=/usr/local
Thread model: posix
gcc version 4.3.0 20061211 (experimental) [trunk revision 119728]
# /usr/gcc-4.3/bin/gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /net/gnu-13/export/gnu/src/gcc/gcc/configure
--enable-clocale=gnu --with-system-zlib --enable-decimal-float=yes
--with-demangler-in-ld --enable-shared --enable-threads=posix --enable-haifa
--enable-checking=assert --prefix=/usr/gcc-4.3 --with-local-prefix=/usr/local
Thread model: posix
gcc version 4.3.0 20070206 (experimental) [trunk revision 121636]
# make
/usr/gcc-good/bin/gfortran -c -O2 -ffast-math -static -o old.o e_c3d.f
/usr/gcc-4.3/bin/gfortran -O2 -ffast-math -static -c -o tr535.o tr535.f
/usr/gcc-4.3/bin/gfortran -O2 -ffast-math -static -o old old.o tr535.o
/usr/gcc-4.3/bin/gfortran -c -O2 -ffast-math -static -o new.o e_c3d.f
/usr/gcc-4.3/bin/gfortran -O2 -ffast-math -static -o new new.o tr535.o
time ./old
0.03user 0.00system 0:00.03elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+82minor)pagefaults 0swaps
time ./new
0.10user 0.00system 0:00.10elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+83minor)pagefaults 0swaps
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30735