This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/40499] [missed optimization] branch to return not threaded on thumb
- From: "carrot at google dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jun 2009 08:00:53 -0000
- Subject: [Bug target/40499] [missed optimization] branch to return not threaded on thumb
- References: <bug-40499-17659@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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