diff options
author | Jeff Law <law@redhat.com> | 2006-04-20 10:13:12 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2006-04-20 10:13:12 -0600 |
commit | bfc646bfc0fe67e0665c2cb2d350339cc10f0b7d (patch) | |
tree | ffe834ca8d2aa7ec6195e65866e08637f5687da9 /gcc/tree-ssa-dse.c | |
parent | 45c792f50b74194c1c3b1038929c1656971bea1b (diff) | |
download | gcc-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-dse.c')
-rw-r--r-- | gcc/tree-ssa-dse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-dse.c b/gcc/tree-ssa-dse.c index 17ed129..85be469 100644 --- a/gcc/tree-ssa-dse.c +++ b/gcc/tree-ssa-dse.c @@ -269,7 +269,7 @@ dse_optimize_stmt (struct dom_walk_data *walk_data, /* If this virtual def does not have precisely one use, then we will not be able to eliminate STMT. */ - if (num_imm_uses (defvar) != 1) + if (! has_single_use (defvar)) { fail = true; break; |