+2017-03-24 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/80167
+ * graphite-isl-ast-to-gimple.c
+ (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
+ properly.
+ (translate_isl_ast_to_gimple::get_rename): Likewise.
+
2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
* config/rs6000/rs6000.c (rs6000_option_override_internal): Change
is_valid_rename (tree rename, basic_block def_bb, basic_block use_bb,
phi_node_kind phi_kind, tree old_name, basic_block old_bb) const
{
+ if (SSA_NAME_IS_DEFAULT_DEF (rename))
+ return true;
+
/* The def of the rename must either dominate the uses or come from a
back-edge. Also the def must respect the loop closed ssa form. */
if (!is_loop_closed_ssa_use (use_bb, rename))
basic_block bb = gimple_bb (SSA_NAME_DEF_STMT (rename));
if (is_valid_rename (rename, bb, new_bb, phi_kind, old_name, old_bb)
&& (phi_kind == close_phi
+ || ! bb
|| flow_bb_inside_loop_p (bb->loop_father, new_bb)))
return rename;
return NULL_TREE;
+2017-03-24 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/80167
+ * gcc.dg/graphite/pr80167.c: New testcase.
+
2017-03-24 Tom de Vries <tom@codesourcery.com>
PR testsuite/80092
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -floop-nest-optimize" } */
+
+typedef struct
+{
+ short a;
+ short b;
+ short c;
+} d;
+extern d e[];
+int f[8];
+void
+g (d *i)
+{
+ int h = 0;
+ for (; h < 28; h++)
+ e[h].a = e[h].b = i[h].a;
+ h = 0;
+ for (; h < 8; h++)
+ f[h] = i[h].b + i[h].c;
+ h = 0;
+ for (; h < 8; h++)
+ f[h] = i[h].b;
+}