2010-01-20 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Jan 2010 11:47:39 +0000 (11:47 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Jan 2010 11:47:39 +0000 (11:47 +0000)
* tree-inline.c (estimate_num_insns): Handle EH builtins.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156073 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-inline.c

index 35fba8e..56c60ba 100644 (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
index d7e515a..e08842c 100644 (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;
            }