diff options
author | Richard Biener <rguenther@suse.de> | 2018-11-08 12:15:49 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2018-11-08 12:15:49 +0000 |
commit | 1c8badf66bec4e0ff73ae24bf4f8cabbef8c137a (patch) | |
tree | a47dd33c628cc99faf95b1196f7e583b2540c437 /gcc/tree-data-ref.h | |
parent | fd5c4c4c99f82fe702f4b4cc5fc2d64f461fc639 (diff) | |
download | gcc-1c8badf66bec4e0ff73ae24bf4f8cabbef8c137a.zip gcc-1c8badf66bec4e0ff73ae24bf4f8cabbef8c137a.tar.gz gcc-1c8badf66bec4e0ff73ae24bf4f8cabbef8c137a.tar.bz2 |
tree-data-ref.h (lambda_int): New typedef.
2018-11-08 Richard Biener <rguenther@suse.de>
* tree-data-ref.h (lambda_int): New typedef.
(lambda_vector_gcd): Adjust.
(lambda_vector_new): Likewise.
(lambda_matrix_new): Likewise.
* tree-data-ref.c (print_lambda_vector): Adjust.
From-SVN: r265914
Diffstat (limited to 'gcc/tree-data-ref.h')
-rw-r--r-- | gcc/tree-data-ref.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/tree-data-ref.h b/gcc/tree-data-ref.h index 525d27f..439a8b9 100644 --- a/gcc/tree-data-ref.h +++ b/gcc/tree-data-ref.h @@ -138,7 +138,8 @@ struct dr_alias space. A vector space is a set that is closed under vector addition and scalar multiplication. In this vector space, an element is a list of integers. */ -typedef int *lambda_vector; +typedef HOST_WIDE_INT lambda_int; +typedef lambda_int *lambda_vector; /* An integer matrix. A matrix consists of m vectors of length n (IE all vectors are the same length). */ @@ -611,11 +612,11 @@ void split_constant_offset (tree , tree *, tree *); /* Compute the greatest common divisor of a VECTOR of SIZE numbers. */ -static inline int +static inline lambda_int lambda_vector_gcd (lambda_vector vector, int size) { int i; - int gcd1 = 0; + lambda_int gcd1 = 0; if (size > 0) { @@ -632,7 +633,7 @@ static inline lambda_vector lambda_vector_new (int size) { /* ??? We shouldn't abuse the GC allocator here. */ - return ggc_cleared_vec_alloc<int> (size); + return ggc_cleared_vec_alloc<lambda_int> (size); } /* Clear out vector VEC1 of length SIZE. */ @@ -686,7 +687,7 @@ lambda_matrix_new (int m, int n, struct obstack *lambda_obstack) mat = XOBNEWVEC (lambda_obstack, lambda_vector, m); for (i = 0; i < m; i++) - mat[i] = XOBNEWVEC (lambda_obstack, int, n); + mat[i] = XOBNEWVEC (lambda_obstack, lambda_int, n); return mat; } |