re PR tree-optimization/52459 (PRE performs stupid inserts)

2012-03-22  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52459
	* tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
	PHI insertion for calls.

From-SVN: r185676
This commit is contained in:
Richard Guenther 2012-03-22 07:29:30 +00:00 committed by Richard Biener
parent 4038e6b816
commit 109a16c2ac
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2012-03-22 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52459
* tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
PHI insertion for calls.
2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
* cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,

View File

@ -3242,6 +3242,10 @@ inhibit_phi_insertion (basic_block bb, pre_expr expr)
{
switch (op->opcode)
{
case CALL_EXPR:
/* Calls are not a problem. */
return false;
case ARRAY_REF:
case ARRAY_RANGE_REF:
if (TREE_CODE (op->op0) != SSA_NAME)