summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-ssa-pre.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3fce28fd668..0bcae9b1fce 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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,
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c
index e5ec931b96f..76df3c623c5 100644
--- a/gcc/tree-ssa-pre.c
+++ b/gcc/tree-ssa-pre.c
@@ -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)