Commit 8c427b58 by Ira Rosen Committed by Dorit Nuzman

tree-vectorizer.c (vect_analyze_offset_expr): Test for INTEGER_CST instead of TREE_CONSTANT.

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.

From-SVN: r92894
parent 8287d24a
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.
......
......@@ -1428,7 +1428,7 @@ vect_analyze_offset_expr (tree expr,
/* 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);
......@@ -1465,7 +1465,7 @@ vect_analyze_offset_expr (tree 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. */
......@@ -1502,7 +1502,7 @@ vect_analyze_offset_expr (tree expr,
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. */
......@@ -3336,7 +3336,7 @@ vect_gen_niters_for_prolog_loop (loop_vec_info loop_vinfo, tree loop_niters)
/* 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");
......@@ -4618,7 +4618,7 @@ vect_analyze_pointer_ref_access (tree memref, tree stmt, bool is_read)
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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment