This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Apr 2009 21:47:26 -0000
- Subject: [Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq
- References: <bug-39942-17483@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from ubizjak at gmail dot com 2009-04-28 21:47 -------
>From config/i386/i386.c:
/* AMD Athlon works faster
when RET is not destination of conditional jump or directly preceded
by other jump instruction. We avoid the penalty by inserting NOP just
before the RET instructions in such cases. */
static void
ix86_pad_returns (void)
...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39942