Commit c370d99f by Richard Biener Committed by Richard Biener

tree-vect-loop.c (vect_analyze_loop_operations): Properly check for a definition…

tree-vect-loop.c (vect_analyze_loop_operations): Properly check for a definition without a basic-block.

2013-09-05  Richard Biener  <rguenther@suse.de>

	* tree-vect-loop.c (vect_analyze_loop_operations): Properly
	check for a definition without a basic-block.

From-SVN: r202273
parent 003bb7f3
2013-09-05 Richard Biener <rguenther@suse.de>
* tree-vect-loop.c (vect_analyze_loop_operations): Properly
check for a definition without a basic-block.
2013-09-05 James Greenhalgh <james.greenhalgh@arm.com> 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
Sofiane Naci <sofiane.naci@arm.com> Sofiane Naci <sofiane.naci@arm.com>
......
...@@ -1384,7 +1384,7 @@ vect_analyze_loop_operations (loop_vec_info loop_vinfo, bool slp) ...@@ -1384,7 +1384,7 @@ vect_analyze_loop_operations (loop_vec_info loop_vinfo, bool slp)
return false; return false;
op_def_stmt = SSA_NAME_DEF_STMT (phi_op); 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)) || !flow_bb_inside_loop_p (loop, gimple_bb (op_def_stmt))
|| !vinfo_for_stmt (op_def_stmt)) || !vinfo_for_stmt (op_def_stmt))
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment