Hi!

One missing spot where clobber stmts need to be ignored.
Testcase needs profile feedback and is quite large, so not
adding it to testsuite; bootstrapped/regtested on x86_64-linux
and i686-linux, approved by richi in the PR, committed to trunk.

2012-02-27  Jakub Jelinek  <ja...@redhat.com>

        PR tree-optimization/52376
        * ipa-split.c (split_function): Ignore CLOBBER stmts.

--- gcc/ipa-split.c.jj  2012-02-27 10:00:29.000000000 +0100
+++ gcc/ipa-split.c     2012-02-27 10:33:03.909581822 +0100
@@ -1300,7 +1300,8 @@ split_function (struct split_point *spli
                            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;

        Jakub

Reply via email to