]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/params.def
re PR rtl-optimization/15242 (pessimization of "goto *")
authorSteven Bosscher <stevenb@suse.de>
Tue, 1 Feb 2005 10:03:15 +0000 (10:03 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Tue, 1 Feb 2005 10:03:15 +0000 (10:03 +0000)
commitbbcb0c056be0883aa970eb5552bb713d516d9c1e
tree87553ed6cbe3253976ee763b34f7a58ef2a27ed1
parente88334a68f98bc5ca30180787f9c67512b568ab7
re PR rtl-optimization/15242 (pessimization of "goto *")

PR optimization/15242
* params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
* basic-block.h (duplicate_computed_gotos): Add prototype.
* bb-reorder.c (duplicate_computed_gotos): New function to
duplicate sufficiently small blocks ending in a computed jump.
* passes.c (rest_of_compilation): Call duplicate_computed_gotos
if not optimizing for size.
* cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
never do tail merging for blocks ending in a computed jump.
* doc/invoke.texi: Document the max-goto-duplication-insns param.

From-SVN: r94531
gcc/ChangeLog
gcc/basic-block.h
gcc/bb-reorder.c
gcc/cfgcleanup.c
gcc/doc/invoke.texi
gcc/params.def
gcc/passes.c