This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/28481] [4.2/4.3/4.4 Regression] regression from 3.x: 4.1.1 uses memory where it can use registers
- From: "vda dot linux at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jul 2008 20:33:01 -0000
- Subject: [Bug target/28481] [4.2/4.3/4.4 Regression] regression from 3.x: 4.1.1 uses memory where it can use registers
- References: <bug-28481-12956@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from vda dot linux at googlemail dot com 2008-07-04 20:33 -------
4.3.1 have number of memory references down from 115 (4.2.1 had that) but still
can't regain the result of 3.4.3 (21 memory reference). Here is how I checked
this:
# i486-linux-uclibc-gcc -v
...
gcc version 4.3.1 (GCC)
# i486-linux-uclibc-gcc -S -fomit-frame-pointer serpent.c -Os -o
serpent-431-Os.s
# i486-linux-uclibc-gcc -S -fomit-frame-pointer serpent.c -O2 -o
serpent-431-O2.s
# i486-linux-uclibc-gcc -S -fomit-frame-pointer serpent.c -O3 -o
serpent-431-O3.s
# grep 'mov.*(' serpent-431-Os.s | wc -l
48
# grep 'mov.*(' serpent-431-O2.s | wc -l
48
# grep 'mov.*(' serpent-431-O3.s | wc -l
48
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28481