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 2/5] Remove unused parameter.


2011-05-24  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-dependences.c (graphite_outer_subscript_bound): Remove
	unused parameter.
	* graphite-dependences.h (graphite_outer_subscript_bound): Same.
	* graphite-opencl-meta-clast.c (opencl_set_meta_rw_flags): Update
	call to graphite_outer_subscript_bound.
	* graphite-opencl.c (opencl_get_indirect_size): Same.
---
 gcc/ChangeLog.graphite           |    9 +++++++++
 gcc/graphite-dependences.c       |    3 +--
 gcc/graphite-dependences.h       |    2 +-
 gcc/graphite-opencl-meta-clast.c |    2 +-
 gcc/graphite-opencl.c            |    2 +-
 5 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 50948b6..af1c764 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,3 +1,12 @@
+2011-05-24  Sebastian Pop  <sebastian.pop@amd.com>
+
+	* graphite-dependences.c (graphite_outer_subscript_bound): Remove
+	unused parameter.
+	* graphite-dependences.h (graphite_outer_subscript_bound): Same.
+	* graphite-opencl-meta-clast.c (opencl_set_meta_rw_flags): Update
+	call to graphite_outer_subscript_bound.
+	* graphite-opencl.c (opencl_get_indirect_size): Same.
+
 2011-05-24  Alexey Kravets  <kayrick@ispras.ru>
 
 	* graphite-opencl.c (opencl_private_var_name_p): Removed.
diff --git a/gcc/graphite-dependences.c b/gcc/graphite-dependences.c
index 6129905..87a8bef 100644
--- a/gcc/graphite-dependences.c
+++ b/gcc/graphite-dependences.c
@@ -743,8 +743,7 @@ graphite_legal_transform (scop_p scop)
    type is INDIRECT_REF), or NULL if the bound could not be found.  */
 
 tree
-graphite_outer_subscript_bound (poly_dr_p pdr,
-				bool minmax ATTRIBUTE_UNUSED)
+graphite_outer_subscript_bound (poly_dr_p pdr)
 {
   tree bound_tree = NULL_TREE;
   poly_bb_p pbb = PDR_PBB (pdr);
diff --git a/gcc/graphite-dependences.h b/gcc/graphite-dependences.h
index a852411..2aef478 100644
--- a/gcc/graphite-dependences.h
+++ b/gcc/graphite-dependences.h
@@ -60,7 +60,7 @@ extern hashval_t hash_poly_ddr_p (const void *);
 extern void free_poly_ddr (void *);
 extern void dot_deps (scop_p);
 extern void dot_deps_stmt (scop_p);
-extern tree graphite_outer_subscript_bound (poly_dr_p, bool);
+extern tree graphite_outer_subscript_bound (poly_dr_p);
 extern void print_pddr (FILE *, poly_ddr_p);
 extern void debug_pddr (poly_ddr_p);
 
diff --git a/gcc/graphite-opencl-meta-clast.c b/gcc/graphite-opencl-meta-clast.c
index 256ccc2..6e18de4 100644
--- a/gcc/graphite-opencl-meta-clast.c
+++ b/gcc/graphite-opencl-meta-clast.c
@@ -433,7 +433,7 @@ opencl_set_meta_rw_flags (opencl_clast_meta meta,
       if (!data->supported)
         meta->access_unsupported = true;
 
-      if (!graphite_outer_subscript_bound (curr, false))
+      if (!graphite_outer_subscript_bound (curr))
         {
           meta->access_unsupported = true;
 
diff --git a/gcc/graphite-opencl.c b/gcc/graphite-opencl.c
index 53704d2..0d53f66 100644
--- a/gcc/graphite-opencl.c
+++ b/gcc/graphite-opencl.c
@@ -1419,7 +1419,7 @@ opencl_get_indirect_size (tree ptr, poly_dr_p ref)
     case POINTER_TYPE:
       {
 	tree inner_type = TREE_TYPE (ptr);
-	tree t = graphite_outer_subscript_bound (ref, false);
+	tree t = graphite_outer_subscript_bound (ref);
 	tree inner_type_size = TYPE_SIZE_UNIT (inner_type);
 
 	if (inner_type_size == NULL)
-- 
1.7.4.1



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