aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Rosen <irar@il.ibm.com>2005-07-24 10:10:49 +0000
committerIra Rosen <irar@gcc.gnu.org>2005-07-24 10:10:49 +0000
commitc8af1197bae33a8770fbab304ef87b668f61978d (patch)
tree55e4313039d93ee1a74792e5a0a86c84023cf17d
parent1b135aa53eb59159bd29be331d083756b98329c4 (diff)
downloadgcc-c8af1197bae33a8770fbab304ef87b668f61978d.zip
gcc-c8af1197bae33a8770fbab304ef87b668f61978d.tar.gz
gcc-c8af1197bae33a8770fbab304ef87b668f61978d.tar.bz2
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-vectorizer.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 365606c..ca336b3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c
index 886a8c2..af5382c 100644
--- a/gcc/tree-vectorizer.c
+++ b/gcc/tree-vectorizer.c
@@ -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,