Commit f5fd5773 by Kai Tietz Committed by Kai Tietz

re PR tree-optimization/61917 (ICE on valid code at -O3 on x86_64-linux-gnu in…

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
parent b4f26d91
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
......
......@@ -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
......
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