This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/40499] [missed optimization] branch to return not threaded on thumb



------- Comment #4 from carrot at google dot com  2009-06-22 08:00 -------
Sorry I didn't make it clear. It is a performance bug, not a code size issue.
If the epilogue is a simple return instruction, the branch to return can be
replaced by the return instruction. So we can execute one less instruction at
run time without any code size penalty.

It looks the code at function.c:5078 can't be applied to thumb.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40499


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]