aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dom.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2006-04-20 10:13:12 -0600
committerJeff Law <law@gcc.gnu.org>2006-04-20 10:13:12 -0600
commitbfc646bfc0fe67e0665c2cb2d350339cc10f0b7d (patch)
treeffe834ca8d2aa7ec6195e65866e08637f5687da9 /gcc/tree-ssa-dom.c
parent45c792f50b74194c1c3b1038929c1656971bea1b (diff)
downloadgcc-bfc646bfc0fe67e0665c2cb2d350339cc10f0b7d.zip
gcc-bfc646bfc0fe67e0665c2cb2d350339cc10f0b7d.tar.gz
gcc-bfc646bfc0fe67e0665c2cb2d350339cc10f0b7d.tar.bz2
re PR tree-optimization/26854 (Inordinate compile times on large routines)
PR tree-optimization/26854 * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when checking for zero or one use. * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly. * tree-cfgcleanup.c (merge_phi_nodes): Similarly. * tree-ssa-reassoc.c (negate_value): Similarly. (reassociate_bb): Similarly. From-SVN: r113120
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r--gcc/tree-ssa-dom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index 6f7c2eb..d99d6a0 100644
--- a/gcc/tree-ssa-dom.c
+++ b/gcc/tree-ssa-dom.c
@@ -2318,7 +2318,7 @@ propagate_rhs_into_lhs (tree stmt, tree lhs, tree rhs, bitmap interesting_names)
The maximum number of times we can re-execute the loop is
bounded by the maximum number of times a given SSA_NAME
appears in a single statement. */
- if (all && num_imm_uses (lhs) != 0)
+ if (all && !has_zero_uses (lhs))
goto repeat;
/* If we were able to propagate away all uses of LHS, then