* tree-vect-loop.c (vectorizable_reduction): Handle obvious case
that reduc_def_stmt is null.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220987
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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