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-reassoc.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-reassoc.c')
-rw-r--r-- | gcc/tree-ssa-reassoc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index 4d298fe..477d8c8 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -1032,7 +1032,7 @@ negate_value (tree tonegate, block_stmt_iterator *bsi) if (TREE_CODE (tonegate) == SSA_NAME && TREE_CODE (negatedef) == MODIFY_EXPR && TREE_CODE (TREE_OPERAND (negatedef, 0)) == SSA_NAME - && num_imm_uses (TREE_OPERAND (negatedef, 0)) == 1 + && has_single_use (TREE_OPERAND (negatedef, 0)) && TREE_CODE (TREE_OPERAND (negatedef, 1)) == PLUS_EXPR) { block_stmt_iterator bsi; @@ -1331,7 +1331,7 @@ reassociate_bb (basic_block bb) /* There may be no immediate uses left by the time we get here because we may have eliminated them all. */ - if (TREE_CODE (lhs) == SSA_NAME && num_imm_uses (lhs) == 0) + if (TREE_CODE (lhs) == SSA_NAME && has_zero_uses (lhs)) continue; TREE_VISITED (stmt) = 1; |