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:
parent
4038e6b816
commit
109a16c2ac
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue