This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/25285] pessimization of goto * ("computed goto")
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Dec 2005 11:51:54 -0000
- Subject: [Bug rtl-optimization/25285] pessimization of goto * ("computed goto")
- References: <bug-25285-895@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from rguenth at gcc dot gnu dot org 2005-12-09 11:51 -------
> 2) If you do reorder the blocks, you should not merge indirect
> branches on CPUs with BTBs, for better branch prediction.
I would rather say that you should not merge frequently executed
indirect branches. There is certainly an upper bound of indirect
branches after that merging is profitable again, and only disabling
merging of frequently executed (from profile feedback) indirect
branches and retaining merging of the seldom executed ones will
probably be the best idea.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25285