tree-vect-patterns.c (vect_single_imm_use): Correct return values from false to NULL.

* tree-vect-patterns.c (vect_single_imm_use): Correct return
	values from false to NULL.

From-SVN: r187182
This commit is contained in:
Ian Lance Taylor 2012-05-04 20:59:13 +00:00 committed by Ian Lance Taylor
parent 6a5b5af766
commit 3e21932c3b
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-05-04 Ian Lance Taylor <iant@google.com>
* tree-vect-patterns.c (vect_single_imm_use): Correct return
values from false to NULL.
2012-05-04 Uros Bizjak <ubizjak@gmail.com>
Backport from mainline

View File

@ -101,10 +101,10 @@ vect_single_imm_use (gimple def_stmt)
return NULL;
if (!gimple_bb (use_stmt))
return false;
return NULL;
if (!flow_bb_inside_loop_p (loop, gimple_bb (use_stmt)))
return false;
return NULL;
gcc_assert (vinfo_for_stmt (use_stmt));
return use_stmt;