Commit 109a16c2 by Richard Guenther Committed by Richard Biener

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
parent 4038e6b8
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,
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment