diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-20 16:13:12 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-20 16:13:12 +0000 |
commit | 72e3ec84575598d7cdedc2e5de0679c4ee0c90ca (patch) | |
tree | ffe834ca8d2aa7ec6195e65866e08637f5687da9 /gcc/tree-ssa-dse.c | |
parent | eeb5db42a188a2a7b564acfe23775ce6ae9bb1b6 (diff) | |
download | gcc-72e3ec84575598d7cdedc2e5de0679c4ee0c90ca.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113120 138bc75d-0d04-0410-961f-82ee72b054a4
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 17ed1297aff..85be46961da 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; |