diff options
author | Marek Polacek <polacek@redhat.com> | 2016-12-13 14:19:12 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2016-12-13 14:19:12 +0000 |
commit | 68a08b7792102aa2851232eec19f5f68047d21ae (patch) | |
tree | cfb87dbc71bcde0322e268e8c0de396f07ca0333 /gcc | |
parent | 9042295c44dad698b9f9758c79185879511e8dee (diff) | |
download | gcc-68a08b7792102aa2851232eec19f5f68047d21ae.zip gcc-68a08b7792102aa2851232eec19f5f68047d21ae.tar.gz gcc-68a08b7792102aa2851232eec19f5f68047d21ae.tar.bz2 |
tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change parameters' type from int to HOST_WIDE_INT.
* tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change
parameters' type from int to HOST_WIDE_INT.
(compute_overlap_steps_for_affine_1_2): Change parameters' type from
int to HOST_WIDE_INT.
(build_classic_dist_vector_1): Likewise.
(add_multivariate_self_dist): Likewise.
From-SVN: r243607
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/tree-data-ref.c | 15 |
2 files changed, 18 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b53704c..e2d7b65 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2016-12-13 Marek Polacek <polacek@redhat.com> + + * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change + parameters' type from int to HOST_WIDE_INT. + (compute_overlap_steps_for_affine_1_2): Change parameters' type from + int to HOST_WIDE_INT. + (build_classic_dist_vector_1): Likewise. + (add_multivariate_self_dist): Likewise. + 2016-12-13 Michael Matz <matz@suse.de> PR tree-optimization/78725 diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index 1408c24..3c28280 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -2164,7 +2164,9 @@ initialize_matrix_A (lambda_matrix A, tree chrec, unsigned index, int mult) constructed as evolutions in dimension DIM. */ static void -compute_overlap_steps_for_affine_univar (int niter, int step_a, int step_b, +compute_overlap_steps_for_affine_univar (HOST_WIDE_INT niter, + HOST_WIDE_INT step_a, + HOST_WIDE_INT step_b, affine_fn *overlaps_a, affine_fn *overlaps_b, tree *last_conflicts, int dim) @@ -2172,8 +2174,8 @@ compute_overlap_steps_for_affine_univar (int niter, int step_a, int step_b, if (((step_a > 0 && step_b > 0) || (step_a < 0 && step_b < 0))) { - int step_overlaps_a, step_overlaps_b; - int gcd_steps_a_b, last_conflict, tau2; + HOST_WIDE_INT step_overlaps_a, step_overlaps_b; + HOST_WIDE_INT gcd_steps_a_b, last_conflict, tau2; gcd_steps_a_b = gcd (step_a, step_b); step_overlaps_a = step_b / gcd_steps_a_b; @@ -2227,7 +2229,7 @@ compute_overlap_steps_for_affine_1_2 (tree chrec_a, tree chrec_b, tree *last_conflicts) { bool xz_p, yz_p, xyz_p; - int step_x, step_y, step_z; + HOST_WIDE_INT step_x, step_y, step_z; HOST_WIDE_INT niter_x, niter_y, niter_z, niter; affine_fn overlaps_a_xz, overlaps_b_xz; affine_fn overlaps_a_yz, overlaps_b_yz; @@ -3192,7 +3194,8 @@ build_classic_dist_vector_1 (struct data_dependence_relation *ddr, if (TREE_CODE (access_fn_a) == POLYNOMIAL_CHREC && TREE_CODE (access_fn_b) == POLYNOMIAL_CHREC) { - int dist, index; + HOST_WIDE_INT dist; + int index; int var_a = CHREC_VARIABLE (access_fn_a); int var_b = CHREC_VARIABLE (access_fn_b); @@ -3266,7 +3269,7 @@ add_multivariate_self_dist (struct data_dependence_relation *ddr, tree c_2) tree c_1 = CHREC_LEFT (c_2); tree c_0 = CHREC_LEFT (c_1); lambda_vector dist_v; - int v1, v2, cd; + HOST_WIDE_INT v1, v2, cd; /* Polynomials with more than 2 variables are not handled yet. When the evolution steps are parameters, it is not possible to |