aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfgcleanup.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-cfgcleanup.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-cfgcleanup.c')
-rw-r--r--gcc/tree-cfgcleanup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-cfgcleanup.c b/gcc/tree-cfgcleanup.c
index fb1ea76..ab452c4 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. */