This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/13329] New: -fcrossjumping (implied by -O1) pessimizes code
- From: "coyote at coyotegulch dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Dec 2003 02:59:56 -0000
- Subject: [Bug c/13329] New: -fcrossjumping (implied by -O1) pessimizes code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I've looked at the other crossjumping bugs, and this seems to be a different
problem. Here are two command lines for comparison:
A) gcc -lrt -O1 -o huff-cj huffbench.c
B) gcc -lrt -O1 -o huff-no-cj -fno-crossjumping huffbench.c
The soon-to-be attached program runs 10% slower when compiled with (A) than when
compiled with (B). The program operates correctly with either option;
crossjumping is simply inefficient.
My apologies for the length of the example code; I'll try to pare it down if
someone deems it necessary.
--
Summary: -fcrossjumping (implied by -O1) pessimizes code
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: coyote at coyotegulch dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux
GCC host triplet: i686-pc-linux
GCC target triplet: i686-pc-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13329