re PR middle-end/39127 (Invalid GIMPLE with OpenMP)

2009-02-10  Richard Guenther  <rguenther@suse.de>

	PR middle-end/39127
	* gimplify.c (gimple_regimplify_operands): Always look if
	we need to create a temporary.

From-SVN: r144061
This commit is contained in:
Richard Guenther 2009-02-10 14:55:15 +00:00 committed by Richard Biener
parent 7cae94fcba
commit bdec4dc7be
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2009-02-10 Richard Guenther <rguenther@suse.de>
PR middle-end/39127
* gimplify.c (gimple_regimplify_operands): Always look if
we need to create a temporary.
2009-02-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/39132

View File

@ -7459,9 +7459,9 @@ gimple_regimplify_operands (gimple stmt, gimple_stmt_iterator *gsi_p)
}
lhs = gimple_get_lhs (stmt);
/* If regimplification of the LHS changed it in a way that requires
a simple RHS, create temporary. */
if (orig_lhs != lhs && !is_gimple_formal_tmp_var (lhs))
/* If the LHS changed it in a way that requires a simple RHS,
create temporary. */
if (lhs && !is_gimple_formal_tmp_var (lhs))
{
bool need_temp = false;