re PR tree-optimization/22526 (vectorizer produces mis-match types in conditionals)

PR tree-optimization/22526
        * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
        of the zero node.

From-SVN: r102332
This commit is contained in:
Ira Rosen 2005-07-24 10:10:49 +00:00 committed by Ira Rosen
parent 1b135aa53e
commit c8af1197ba
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-07-24 Ira Rosen <irar@il.ibm.com>
PR tree-optimization/22526
* tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
of the zero node.
2005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
* builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins

View File

@ -1142,7 +1142,8 @@ slpeel_tree_peel_loop_to_edge (struct loop *loop, struct loops *loops,
add_bb_to_loop (bb_before_second_loop, first_loop->outer);
pre_condition =
fold_build2 (LE_EXPR, boolean_type_node, first_niters, integer_zero_node);
fold_build2 (LE_EXPR, boolean_type_node, first_niters,
build_int_cst (TREE_TYPE (first_niters), 0));
skip_e = slpeel_add_loop_guard (bb_before_first_loop, pre_condition,
bb_before_second_loop, bb_before_first_loop);
slpeel_update_phi_nodes_for_guard1 (skip_e, first_loop,