diff mbox

Fix a fallout from my recent ipa-split change (PR tree-optimization/52376)

Message ID 20120227150652.GQ18768@tyan-ft48-01.lab.bos.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek Feb. 27, 2012, 3:06 p.m. UTC
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  <jakub@redhat.com>

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


	Jakub
diff mbox

Patch

--- 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;