tree-inline.c (estimate_num_insns): Handle EH builtins.

2010-01-20  Richard Guenther  <rguenther@suse.de>

	* tree-inline.c (estimate_num_insns): Handle EH builtins.

From-SVN: r156073
This commit is contained in:
Richard Guenther 2010-01-20 11:47:39 +00:00 committed by Richard Biener
parent 1124098bb2
commit be2fd18721
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2010-01-20 Richard Guenther <rguenther@suse.de>
* tree-inline.c (estimate_num_insns): Handle EH builtins.
2010-01-20 Jakub Jelinek <jakub@redhat.com>
* sel-sched.c (create_speculation_check): Remove set but not used

View File

@ -3310,6 +3310,12 @@ estimate_num_insns (gimple stmt, eni_weights *weights)
cost = weights->target_builtin_call_cost;
break;
/* Exception state returns or moves registers around. */
case BUILT_IN_EH_FILTER:
case BUILT_IN_EH_POINTER:
case BUILT_IN_EH_COPY_VALUES:
return 0;
default:
break;
}