diff options
author | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-24 10:10:49 +0000 |
---|---|---|
committer | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-24 10:10:49 +0000 |
commit | c0b62deba3fbb626743df167793a1e0f73491db3 (patch) | |
tree | 55e4313039d93ee1a74792e5a0a86c84023cf17d /gcc/tree-vectorizer.c | |
parent | fba98e2fdf7ec27e4d21fd917d5a4b7a34551f4d (diff) | |
download | gcc-c0b62deba3fbb626743df167793a1e0f73491db3.tar.gz |
PR tree-optimization/22526
* tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
of the zero node.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102332 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vectorizer.c')
-rw-r--r-- | gcc/tree-vectorizer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c index 886a8c21136..af5382cd735 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, |