+2005-01-04 Ira Rosen <irar@il.ibm.com>
+
+ * tree-vectorizer.c (vect_analyze_offset_expr): Test for
+ INTEGER_CST instead of TREE_CONSTANT.
+ (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
+ instead of TREE_CONSTANT.
+ (vect_analyze_pointer_ref_access): Test for INTEGER_CST
+ instead of TREE_CONSTANT.
+
2005-01-04 Eric Botcazou <ebotcazou@libertysurf.fr>
* tree-eh.c (replace_goto_queue): Return early if the queue is empty.
/* Stop conditions:
1. Constant. */
- if (TREE_CONSTANT (expr))
+ if (TREE_CODE (expr) == INTEGER_CST)
{
*initial_offset = fold_convert (sizetype, expr);
*misalign = fold_convert (sizetype, expr);
/* Evolution is not constant. */
return false;
- if (TREE_CONSTANT (init))
+ if (TREE_CODE (init) == INTEGER_CST)
*misalign = fold_convert (sizetype, init);
else
/* Not constant, misalignment cannot be calculated. */
switch (code)
{
case MULT_EXPR:
- if (!TREE_CONSTANT (right_offset))
+ if (TREE_CODE (right_offset) != INTEGER_CST)
/* RIGHT_OFFSET can be not constant. For example, for arrays of variable
sized types.
FORNOW: We don't support such cases. */
/* If the loop bound is known at compile time we already verified that it is
greater than vf; since the misalignment ('iters') is at most vf, there's
no need to generate the MIN_EXPR in this case. */
- if (!TREE_CONSTANT (loop_niters))
+ if (TREE_CODE (loop_niters) != INTEGER_CST)
iters = build2 (MIN_EXPR, niters_type, iters, loop_niters);
var = create_tmp_var (niters_type, "prolog_loop_niters");
STRIP_NOPS (init);
- if (!TREE_CONSTANT (step))
+ if (TREE_CODE (step) != INTEGER_CST)
{
if (vect_debug_stats (loop) || vect_debug_details (loop))
fprintf (dump_file,