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-cfgcleanup.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-cfgcleanup.c')
-rw-r--r-- | gcc/tree-cfgcleanup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-cfgcleanup.c b/gcc/tree-cfgcleanup.c index fb1ea761d32..ab452c4af5a 100644 --- a/gcc/tree-cfgcleanup.c +++ b/gcc/tree-cfgcleanup.c @@ -765,13 +765,12 @@ merge_phi_nodes (void) for (phi = phi_nodes (bb); phi; phi = PHI_CHAIN (phi)) { tree result = PHI_RESULT (phi); - int num_uses = num_imm_uses (result); use_operand_p imm_use; tree use_stmt; /* If the PHI's result is never used, then we can just ignore it. */ - if (num_uses == 0) + if (has_zero_uses (result)) continue; /* Get the single use of the result of this PHI node. */ |