This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] loop-unroll.c: Remove a local variable that is set but notused.


Hi,

Attached is a patch to remove a local variable that is set but not
used.

Bootstrapped on i686-pc-linux-gnu.  Committed as obvious.

Kazu Hirata

2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>

	* loop-unroll.c (analyze_insns_in_loop): Remove preheader.

Index: loop-unroll.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/loop-unroll.c,v
retrieving revision 1.26
diff -u -d -p -r1.26 loop-unroll.c
--- loop-unroll.c	2 Mar 2005 14:03:36 -0000	1.26
+++ loop-unroll.c	8 Mar 2005 23:25:03 -0000
@@ -1648,7 +1648,6 @@ analyze_insns_in_loop (struct loop *loop
   PTR *slot1;
   PTR *slot2;
   edge *edges = get_loop_exit_edges (loop, &n_edges);
-  basic_block preheader;
   bool can_apply = false;
   
   iv_analysis_loop_init (loop);
@@ -1662,7 +1661,7 @@ analyze_insns_in_loop (struct loop *loop
   /* Record the loop exit bb and loop preheader before the unrolling.  */
   if (!loop_preheader_edge (loop)->src)
     {
-      preheader = loop_split_edge_with (loop_preheader_edge (loop), NULL_RTX);
+      loop_split_edge_with (loop_preheader_edge (loop), NULL_RTX);
       opt_info->loop_preheader = loop_split_edge_with (loop_preheader_edge (loop), NULL_RTX);
     }
   else


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]