Patchwork [7/7] Fix unused warnings.

login
register
mail settings
Submitter Sebastian Pop
Date Nov. 30, 2010, 2:50 p.m.
Message ID <1291128636-30240-8-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/73614/
State New
Headers show

Comments

Sebastian Pop - Nov. 30, 2010, 2:50 p.m.
From: spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>

2010-11-26  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
	unused warning.
	(rewrite_cross_bb_scalar_deps_out_of_ssa): Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/graphite@167166 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog               |    6 ++++++
 gcc/ChangeLog.graphite      |    6 ++++++
 gcc/graphite-sese-to-poly.c |    5 +----
 3 files changed, 13 insertions(+), 4 deletions(-)

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3cf2c7c..7a1781a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@ 
 2010-11-29  Sebastian Pop  <sebastian.pop@amd.com>
 
+	* graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
+	unused warning.
+	(rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
+
+2010-11-29  Sebastian Pop  <sebastian.pop@amd.com>
+
 	* graphite-sese-to-poly.c (analyze_drs): Removed.
 	(build_scop_drs): Do not call analyze_drs.
 	(analyze_drs_in_stmts): New.
diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index b5c6004..e6e9ff9 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,5 +1,11 @@ 
 2010-11-26  Sebastian Pop  <sebastian.pop@amd.com>
 
+	* graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
+	unused warning.
+	(rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
+
+2010-11-26  Sebastian Pop  <sebastian.pop@amd.com>
+
 	* graphite-sese-to-poly.c (analyze_drs): Removed.
 	(build_scop_drs): Do not call analyze_drs.
 	(analyze_drs_in_stmts): New.
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c
index 805c0f5..6e1e1e0 100644
--- a/gcc/graphite-sese-to-poly.c
+++ b/gcc/graphite-sese-to-poly.c
@@ -2026,7 +2026,6 @@  static void
 analyze_drs_in_stmts (scop_p scop, basic_block bb, VEC (gimple, heap) *stmts)
 {
   loop_p nest;
-  poly_bb_p pbb;
   gimple_bb_p gbb;
   gimple stmt;
   int i;
@@ -2035,7 +2034,6 @@  analyze_drs_in_stmts (scop_p scop, basic_block bb, VEC (gimple, heap) *stmts)
     return;
 
   nest = outermost_loop_in_sese (SCOP_REGION (scop), bb);
-  pbb = pbb_from_bb (bb);
   gbb = gbb_from_bb (bb);
 
   FOR_EACH_VEC_ELT (gimple, stmts, i, stmt)
@@ -2572,13 +2570,12 @@  static void
 rewrite_cross_bb_scalar_deps_out_of_ssa (scop_p scop)
 {
   basic_block bb;
-  basic_block exit;
   gimple_stmt_iterator psi;
   sese region = SCOP_REGION (scop);
   bool changed = false;
 
   /* Create an extra empty BB after the scop.  */
-  exit = split_edge (SESE_EXIT (region));
+  split_edge (SESE_EXIT (region));
 
   FOR_EACH_BB (bb)
     if (bb_in_sese_p (bb, region))