summaryrefslogtreecommitdiff
path: root/gcc/tree-scalar-evolution.c
diff options
context:
space:
mode:
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-04 17:08:16 +0000
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-04 17:08:16 +0000
commit7c010d6ad7a6483a795d8b89e815db8c0202b013 (patch)
treeecd42354237b0f4068bb211686fb5a540d25d567 /gcc/tree-scalar-evolution.c
parentd8c09ceb51453b4bf62d7507b613ea5e423dc9ab (diff)
downloadgcc-7c010d6ad7a6483a795d8b89e815db8c0202b013.tar.gz
* tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
set_nb_iterations_in_loop): Use build_int_cst instead of build_int_cst_type. * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use build_int_cst instead of convert. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112673 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-scalar-evolution.c')
-rw-r--r--gcc/tree-scalar-evolution.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c
index f1a2efa9041..3b1ea02f820 100644
--- a/gcc/tree-scalar-evolution.c
+++ b/gcc/tree-scalar-evolution.c
@@ -481,7 +481,7 @@ compute_overall_effect_of_inner_loop (struct loop *loop, tree evolution_fn)
/* Number of iterations is off by one (the ssa name we
analyze must be defined before the exit). */
nb_iter = chrec_fold_minus (type, nb_iter,
- build_int_cst_type (type, 1));
+ build_int_cst (type, 1));
/* evolution_fn is the evolution function in LOOP. Get
its value in the nb_iter-th iteration. */
@@ -897,7 +897,7 @@ set_nb_iterations_in_loop (struct loop *loop,
{
tree type = chrec_type (res);
- res = chrec_fold_plus (type, res, build_int_cst_type (type, 1));
+ res = chrec_fold_plus (type, res, build_int_cst (type, 1));
/* FIXME HWI: However we want to store one iteration less than the
count of the loop in order to be compatible with the other