re PR tree-optimization/61917 (ICE on valid code at -O3 on x86_64-linux-gnu in vectorizable_reduction, at tree-vect-loop.c:4913)

PR tree-optimization/61917
	* tree-vect-loop.c (vectorizable_reduction): Handle obvious case
	that reduc_def_stmt is null.

From-SVN: r220987
This commit is contained in:
Kai Tietz 2015-02-25 19:21:37 +01:00 committed by Kai Tietz
parent b4f26d91af
commit f5fd577303
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2015-02-25 Kai Tietz <ktietz@redhat.com>
PR tree-optimization/61917
* tree-vect-loop.c (vectorizable_reduction): Handle obvious case
that reduc_def_stmt is null.
2015-02-25 Martin Liska <mliska@suse.cz>
* ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare

View File

@ -4984,7 +4984,7 @@ vectorizable_reduction (gimple stmt, gimple_stmt_iterator *gsi,
if (!found_nested_cycle_def)
reduc_def_stmt = def_stmt;
if (gimple_code (reduc_def_stmt) != GIMPLE_PHI)
if (reduc_def_stmt && gimple_code (reduc_def_stmt) != GIMPLE_PHI)
return false;
if (!(dt == vect_reduction_def