diff options
author | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-03 10:14:55 +0000 |
---|---|---|
committer | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-03 10:14:55 +0000 |
commit | aada78b6a8f393e62f475864cb69e9539f9eb037 (patch) | |
tree | 58fbf7c4d3dd85e6059ee001a23d696143d856d7 /gcc/tree-vect-loop.c | |
parent | 0aee0b046df0470692c187b2acec8a3eec9e6787 (diff) | |
download | gcc-aada78b6a8f393e62f475864cb69e9539f9eb037.tar.gz |
PR tree-optimization/49610
* tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
a basic block.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175786 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-loop.c')
-rw-r--r-- | gcc/tree-vect-loop.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index 0352607732b..63b346979af 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -1823,6 +1823,7 @@ vect_is_slp_reduction (loop_vec_info loop_info, gimple phi, gimple first_stmt) ("vect_internal_def"), or it's an induction (defined by a loop-header phi-node). */ if (def_stmt + && gimple_bb (def_stmt) && flow_bb_inside_loop_p (loop, gimple_bb (def_stmt)) && (is_gimple_assign (def_stmt) || is_gimple_call (def_stmt) @@ -1852,6 +1853,7 @@ vect_is_slp_reduction (loop_vec_info loop_info, gimple phi, gimple first_stmt) ("vect_internal_def"), or it's an induction (defined by a loop-header phi-node). */ if (def_stmt + && gimple_bb (def_stmt) && flow_bb_inside_loop_p (loop, gimple_bb (def_stmt)) && (is_gimple_assign (def_stmt) || is_gimple_call (def_stmt) |