[Bug target/40499] [missed optimization] branch to return not threaded on thumb
carrot at google dot com
gcc-bugzilla@gcc.gnu.org
Mon Jun 22 08:01:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list