2015-07-16 Tom de Vries <tom@codesourcery.com>
* tree-parloops.c (create_loads_for_reductions): Handle case that
reduction is unused.
From-SVN: r225872
+2015-07-16 Tom de Vries <tom@codesourcery.com>
+
+ * tree-parloops.c (create_loads_for_reductions): Handle case that
+ reduction is unused.
+
2015-07-16 Richard Biener <rguenther@suse.de>
PR tree-optimization/66894
tree name;
tree x;
+ /* If there's no exit phi, the result of the reduction is unused. */
+ if (red->keep_res == NULL)
+ return 1;
+
gsi = gsi_after_labels (clsn_data->load_bb);
load_struct = build_simple_mem_ref (clsn_data->load);
load_struct = build3 (COMPONENT_REF, type, load_struct, red->field,