aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-13 15:00:55 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-13 15:00:55 +0000
commit9ded39a5b702d4b971989f5c106ef49fe1f74302 (patch)
tree43d0bd7d5488eadaa792a25a03cc3da18a4b6819
parent1f6b144577a1a3d684d735e6ab1c729e1ebff22c (diff)
PR optimization/14553
* tree-ssa.c (replace_immediate_uses): Call propagate_value to update operands. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79447 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog.tree-ssa6
-rw-r--r--gcc/tree-ssa.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog.tree-ssa b/gcc/ChangeLog.tree-ssa
index a3c4218dffd..67285624742 100644
--- a/gcc/ChangeLog.tree-ssa
+++ b/gcc/ChangeLog.tree-ssa
@@ -1,5 +1,11 @@
2004-03-12 Diego Novillo <dnovillo@redhat.com>
+ PR optimization/14553
+ * tree-ssa.c (replace_immediate_uses): Call propagate_value to
+ update operands.
+
+2004-03-12 Diego Novillo <dnovillo@redhat.com>
+
* tree-alias-common.c (create_alias_vars): Add #if
HAVE_BANSHEE around test for PTA_ANDERSEN.
diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c
index bbe46e3eb12..19514e01f7f 100644
--- a/gcc/tree-ssa.c
+++ b/gcc/tree-ssa.c
@@ -3850,19 +3850,19 @@ replace_immediate_uses (tree var, tree repl)
uses = STMT_USE_OPS (stmt);
for (j = 0; j < (int) NUM_USES (uses); j++)
if (USE_OP (uses, j) == var)
- *USE_OP_PTR (uses, j) = repl;
+ propagate_value (USE_OP_PTR (uses, j), repl);
}
else
{
vuses = STMT_VUSE_OPS (stmt);
for (j = 0; j < (int) NUM_VUSES (vuses); j++)
if (VUSE_OP (vuses, j) == var)
- *VUSE_OP_PTR (vuses, j) = repl;
+ propagate_value (VUSE_OP_PTR (vuses, j), repl);
vdefs = STMT_VDEF_OPS (stmt);
for (j = 0; j < (int) NUM_VDEFS (vdefs); j++)
if (VDEF_OP (vdefs, j) == var)
- *VDEF_OP_PTR (vdefs, j) = repl;
+ propagate_value (VDEF_OP_PTR (vdefs, j), repl);
}
modify_stmt (stmt);