aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2009-07-31 02:35:02 +0000
committerSebastian Pop <spop@gcc.gnu.org>2009-07-31 02:35:02 +0000
commitae5b9860344c370d465e943db14e67f5b49bf173 (patch)
treed0992b56502b7b00d5cc28803461c0c8ce8f98ba /gcc
parentda24f9d99abb4e75e0b5bd20c670e262ac540683 (diff)
downloadgcc-ae5b9860344c370d465e943db14e67f5b49bf173.zip
gcc-ae5b9860344c370d465e943db14e67f5b49bf173.tar.gz
gcc-ae5b9860344c370d465e943db14e67f5b49bf173.tar.bz2
Remove unused function and field in data_reference.
2009-07-30 Sebastian Pop <sebastian.pop@amd.com> * tree-data-ref.c (stmt_simple_memref_p: Removed. * tree-data-ref.h (scop_p): Removed. (struct data_reference): Remove field scop. (DR_SCOP): Removed. (stmt_simple_memref_p): Removed. From-SVN: r150295
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/tree-data-ref.c16
-rw-r--r--gcc/tree-data-ref.h7
3 files changed, 8 insertions, 23 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 448a471..b361ec1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,13 @@
2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
+ * tree-data-ref.c (stmt_simple_memref_p: Removed.
+ * tree-data-ref.h (scop_p): Removed.
+ (struct data_reference): Remove field scop.
+ (DR_SCOP): Removed.
+ (stmt_simple_memref_p): Removed.
+
+2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
+
* cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
* cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
basic block empty.
diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c
index 2181f46..9e811da 100644
--- a/gcc/tree-data-ref.c
+++ b/gcc/tree-data-ref.c
@@ -3334,22 +3334,6 @@ access_functions_are_affine_or_constant_p (const struct data_reference *a,
return true;
}
-/* Return true if we can create an affine data-ref for OP in STMT. */
-
-bool
-stmt_simple_memref_p (struct loop *loop, gimple stmt, tree op)
-{
- data_reference_p dr;
- bool res = true;
-
- dr = create_data_ref (loop, op, stmt, true);
- if (!access_functions_are_affine_or_constant_p (dr, loop))
- res = false;
-
- free_data_ref (dr);
- return res;
-}
-
/* Initializes an equation for an OMEGA problem using the information
contained in the ACCESS_FUN. Returns true when the operation
succeeded.
diff --git a/gcc/tree-data-ref.h b/gcc/tree-data-ref.h
index dfce233..eea73dd 100644
--- a/gcc/tree-data-ref.h
+++ b/gcc/tree-data-ref.h
@@ -96,8 +96,6 @@ struct dr_alias
bitmap vops;
};
-typedef struct scop *scop_p;
-
/* Each vector of the access matrix represents a linear access
function for a subscript. First elements correspond to the
leftmost indices, ie. for a[i][j] the first vector corresponds to
@@ -184,14 +182,10 @@ struct data_reference
/* Alias information for the data reference. */
struct dr_alias alias;
- /* The SCoP in which the data reference was analyzed. */
- scop_p scop;
-
/* Matrix representation for the data access functions. */
struct access_matrix *access_matrix;
};
-#define DR_SCOP(DR) (DR)->scop
#define DR_STMT(DR) (DR)->stmt
#define DR_REF(DR) (DR)->ref
#define DR_BASE_OBJECT(DR) (DR)->indices.base_object
@@ -418,7 +412,6 @@ extern void compute_all_dependences (VEC (data_reference_p, heap) *,
extern void create_rdg_vertices (struct graph *, VEC (gimple, heap) *);
extern bool dr_may_alias_p (const struct data_reference *,
const struct data_reference *);
-extern bool stmt_simple_memref_p (struct loop *, gimple, tree);
/* Return true when the DDR contains two data references that have the
same access functions. */