tree-if-conv.c (tree_if_convert_cond_expr): Remove local variable new_cond.
authorKazu Hirata <kazu@cs.umass.edu>
Sat, 12 Mar 2005 18:35:48 +0000 (18:35 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sat, 12 Mar 2005 18:35:48 +0000 (18:35 +0000)
* tree-if-conv.c (tree_if_convert_cond_expr): Remove local
variable new_cond.
(combine_blocks): Remove local variables exits and new_e.

From-SVN: r96346

gcc/ChangeLog
gcc/tree-if-conv.c

index 146e988f06ebcc3e2c5ec31ce5e9793603a015bb..4137e13fe12ef63f75d574519751c6c01d40340c 100644 (file)
        (compare_for_stack_reg): Remove local variable flags_user.
        (convert_regs_1): Remove local variable deleted.
 
+       * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
+       variable new_cond.
+       (combine_blocks): Remove local variables exits and new_e.
+
 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
 
        * c-lex.c (c_lex_with_flags): Add parameter to call to 
index 74e2e74c33a2097e7e2d0514471e1ec48e0736bb..d22a61735598ff3675c41f79e8afc3201607477e 100644 (file)
@@ -271,9 +271,8 @@ static void
 tree_if_convert_cond_expr (struct loop *loop, tree stmt, tree cond,
                           block_stmt_iterator *bsi)
 {
-  tree c, c2, new_cond;
+  tree c, c2;
   edge true_edge, false_edge;
-  new_cond = NULL_TREE;
 
   gcc_assert (TREE_CODE (stmt) == COND_EXPR);
 
@@ -294,8 +293,8 @@ tree_if_convert_cond_expr (struct loop *loop, tree stmt, tree cond,
   /* Add new condition into destination's predicate list.  */
 
   /* If 'c' is true then TRUE_EDGE is taken.  */
-  new_cond = add_to_dst_predicate_list (loop, true_edge->dest, cond,
-                                       unshare_expr (c), bsi);
+  add_to_dst_predicate_list (loop, true_edge->dest, cond,
+                            unshare_expr (c), bsi);
 
   if (!is_gimple_reg(c) && is_gimple_condexpr (c))
     {
@@ -859,7 +858,8 @@ combine_blocks (struct loop *loop)
   unsigned int orig_loop_num_nodes = loop->num_nodes;
   unsigned int i;
   unsigned int n_exits;
-  edge *exits = get_loop_exit_edges (loop, &n_exits);
+
+  get_loop_exit_edges (loop, &n_exits);
   /* Process phi nodes to prepare blocks for merge.  */
   process_phi_nodes (loop);
 
@@ -880,11 +880,10 @@ combine_blocks (struct loop *loop)
 
       if (bb == exit_bb)
        {
-         edge new_e;
          edge_iterator ei;
 
          /* Connect this node with loop header.  */
-         new_e = make_edge (ifc_bbs[0], bb, EDGE_FALLTHRU);
+         make_edge (ifc_bbs[0], bb, EDGE_FALLTHRU);
          set_immediate_dominator (CDI_DOMINATORS, bb, ifc_bbs[0]);
 
          if (exit_bb != loop->latch)
@@ -914,7 +913,6 @@ combine_blocks (struct loop *loop)
         loop->header and loop->latch blocks.  */
       if (bb == loop->latch && n_exits == 0)
        {
-         exits = NULL; /* To suppress unused warning.  */
          make_edge (loop->header, loop->latch, EDGE_FALLTHRU);
          set_immediate_dominator (CDI_DOMINATORS, loop->latch, loop->header);
          continue;