OSDN Git Service

PR tree-optimization/52376
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Feb 2012 15:04:28 +0000 (15:04 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Feb 2012 15:04:28 +0000 (15:04 +0000)
* ipa-split.c (split_function): Ignore CLOBBER stmts.

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

gcc/ChangeLog
gcc/ipa-split.c

index abc17a1..1a9e0f9 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-27  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/52376
+       * ipa-split.c (split_function): Ignore CLOBBER stmts.
+
 2012-02-27  Stuart Henderson  <shenders@gcc.gnu.org>
 
        * ifcvt.c (noce_get_condition): Check condition variable is not
index cb35150..9dddf39 100644 (file)
@@ -1300,7 +1300,8 @@ split_function (struct split_point *split_point)
                            gimple_return_set_retval (gsi_stmt (bsi), retval);
                            break;
                          }
-                       else if (gimple_code (gsi_stmt (bsi)) == GIMPLE_ASSIGN)
+                       else if (gimple_code (gsi_stmt (bsi)) == GIMPLE_ASSIGN
+                                && !gimple_clobber_p (gsi_stmt (bsi)))
                          {
                            gimple_assign_set_rhs1 (gsi_stmt (bsi), retval);
                            break;