This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/31888] New: inefficient comparison sequence - cond jump to label after immediately-following cond jump
- From: "raeburn at raeburn dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 May 2007 04:49:43 -0000
- Subject: [Bug rtl-optimization/31888] New: inefficient comparison sequence - cond jump to label after immediately-following cond jump
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
In the source file i'm going to attach, with compiler rev 124583, the generated
assembly code includes a sequence:
jg .L2
jge .L6
.L2:
...
This would be more efficient as a "je .L6", and with the alternate (simpler)
implementation of data_eq, that's how it compiles.
--
Summary: inefficient comparison sequence - cond jump to label
after immediately-following cond jump
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: raeburn at raeburn dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31888