[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq
vvv at ru dot ru
gcc-bugzilla@gcc.gnu.org
Wed May 13 19:19:00 GMT 2009
------- Comment #28 from vvv at ru dot ru 2009-05-13 19:18 -------
(In reply to comment #24)
> Using padding to avoid 4 branches in 16byte chunk may not be a good idea since
> it will increase code size.
It's enough only one byte NOP per 16-byte chunk for padding. But, IMHO, four
branches in 16 byte chunk - is very-very infrequent. Especially for 64-bit
mode.
BTW, it's difficult to understand, what Intel mean ander term "branch". Is it
CALL, JMP, conditional branches, or returns (same as AMD), or only JMP and
conditional branches. I beleave last case right.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39942
More information about the Gcc-bugs
mailing list