]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-scalar-evolution.c (compute_overall_effect_of_inner_loop, [...]): Use build_int_...
authorSebastian Pop <pop@cri.ensmp.fr>
Tue, 4 Apr 2006 17:08:16 +0000 (19:08 +0200)
committerSebastian Pop <spop@gcc.gnu.org>
Tue, 4 Apr 2006 17:08:16 +0000 (17:08 +0000)
* 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.

From-SVN: r112673

gcc/ChangeLog
gcc/tree-data-ref.c
gcc/tree-scalar-evolution.c

index a9ad12d75f7791aaa061031fce85fa80b6e349cd..1b34bd3690c13ae07c34d4b3ceeb02e5fb02f5d8 100644 (file)
@@ -1,3 +1,11 @@
+2006-04-04  Sebastian Pop  <pop@cri.ensmp.fr>
+
+       * 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.
+
 2006-04-04  Carlos O'Donell  <carlos@codesourcery.com>
 
        * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
index 30b491b30f77419bb3c778e42a19a48221c799a1..596b484650012a49f47fdff525ed59d4bc63f344 100644 (file)
@@ -3057,7 +3057,7 @@ can_use_analyze_subscript_affine_affine (tree *chrec_a, tree *chrec_b)
                                     diff, CHREC_RIGHT (*chrec_a));
   right_b = chrec_convert (type, CHREC_RIGHT (*chrec_b), NULL_TREE);
   *chrec_b = build_polynomial_chrec (CHREC_VARIABLE (*chrec_b),
-                                    convert (type, integer_zero_node),
+                                    build_int_cst (type, 0),
                                     right_b);
   return true;
 }
index f1a2efa9041d5464afae535ab71f4ed5b1957d9f..3b1ea02f820277213cb5aa8a93cd9bee98a85208 100644 (file)
@@ -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