diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-06 21:53:29 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-06 21:53:29 +0000 |
commit | 2d6fe479ffe67598e38a1b89be0913544cf2f549 (patch) | |
tree | 139fa3121690e6edcefc6c130c481df1d4f69810 /gcc/graphite-clast-to-gimple.c | |
parent | 6fe110773dc4e0ff861a8e05ab53ead156686b35 (diff) | |
download | gcc-2d6fe479ffe67598e38a1b89be0913544cf2f549.tar.gz |
Resolve CLooG's value_* macros to their respective mpz_* counterparts.
2010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
* graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
CLooG's value_* macros to their respective mpz_* counterparts.
* graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
(graphite_create_new_loop_guard): Same.
* graphite-interchange.c (build_linearized_memory_access): Same.
(pdr_stride_in_loop): Same.
(memory_strides_in_loop_1): Same.
(1st_interchange_profitable_p): Same.
* graphite-poly.c (extend_scattering): Same.
(psct_scattering_dim_for_loop_depth): Same.
(pbb_number_of_iterations): Same.
(pbb_number_of_iterations_at_time): Same.
* graphite-poly.h (new_1st_loop): Same.
* graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
(oppose_constraint): Same.
(insert_constraint_into_matrix): Same.
(ppl_set_inhomogeneous_gmp): Same.
(ppl_set_coef_gmp): Same.
(ppl_strip_loop): Same.
(ppl_lexico_compare_linear_expressions): Same.
(ppl_max_for_le_pointset): Same.
(ppl_min_for_le_pointset): Same.
(ppl_build_realtion): Same.
* graphite-ppl.h (gmp_cst_to_tree): Same.
(ppl_set_inhomogeneous): Same.
(ppl_set_inhomogeneous_tree): Same.
(ppl_set_coef): Same.
(ppl_set_coef_tree): Same.
* graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
(build_scop_scattering): Same.
(add_value_to_dim): Same.
(scan_tree_for_params_right_scev): Same.
(scan_tree_for_params_int): Same.
(scan_tree_for_params): Same.
(find_params_in_bb): Same.
(find_scop_parameters): Same.
(add_upper_bounds_from_estimated_nit): Same.
(build_loop_iteration_domains): Same.
(create_linear_expr_from_tree): Same.
(add_condition_to_domain): Same.
(pdr_add_memory_accesses): Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159132 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-clast-to-gimple.c')
-rw-r--r-- | gcc/graphite-clast-to-gimple.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/graphite-clast-to-gimple.c b/gcc/graphite-clast-to-gimple.c index 01d141f57bb..e433cefeb2d 100644 --- a/gcc/graphite-clast-to-gimple.c +++ b/gcc/graphite-clast-to-gimple.c @@ -311,7 +311,7 @@ clast_to_gcc_expression (tree type, struct clast_expr *e, if (t->var) { - if (value_one_p (t->val)) + if (mpz_cmp_si (t->val, 1) == 0) { tree name = clast_name_to_gcc (t->var, region, newivs, newivs_index, params_index); @@ -323,7 +323,7 @@ clast_to_gcc_expression (tree type, struct clast_expr *e, return name; } - else if (value_mone_p (t->val)) + else if (mpz_cmp_si (t->val, -1) == 0) { tree name = clast_name_to_gcc (t->var, region, newivs, newivs_index, params_index); @@ -1036,11 +1036,11 @@ graphite_create_new_loop_guard (sese region, edge entry_edge, However lb < ub + 1 is false, as expected. */ tree one; Value gmp_one; - - value_init (gmp_one); - value_set_si (gmp_one, 1); + + mpz_init (gmp_one); + mpz_set_si (gmp_one, 1); one = gmp_cst_to_tree (type, gmp_one); - value_clear (gmp_one); + mpz_clear (gmp_one); ub_one = fold_build2 (POINTER_TYPE_P (type) ? POINTER_PLUS_EXPR : PLUS_EXPR, type, ub, one); |