From: Richard Biener Date: Thu, 5 Sep 2013 10:30:51 +0000 (+0000) Subject: tree-vect-loop.c (vect_analyze_loop_operations): Properly check for a definition... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c370d99fc1834816ab642b5d3b5cfbc57e41830a;p=gcc.git tree-vect-loop.c (vect_analyze_loop_operations): Properly check for a definition without a basic-block. 2013-09-05 Richard Biener * tree-vect-loop.c (vect_analyze_loop_operations): Properly check for a definition without a basic-block. From-SVN: r202273 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 43e777049fe..da1fbc09938 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-09-05 Richard Biener + + * tree-vect-loop.c (vect_analyze_loop_operations): Properly + check for a definition without a basic-block. + 2013-09-05 James Greenhalgh Sofiane Naci diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index 055538f7e9c..762a894a500 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -1384,7 +1384,7 @@ vect_analyze_loop_operations (loop_vec_info loop_vinfo, bool slp) return false; op_def_stmt = SSA_NAME_DEF_STMT (phi_op); - if (!op_def_stmt + if (gimple_nop_p (op_def_stmt) || !flow_bb_inside_loop_p (loop, gimple_bb (op_def_stmt)) || !vinfo_for_stmt (op_def_stmt)) return false;