Commit b7a120d7 by Tom de Vries Committed by Tom de Vries

Fix typo in copy_cond_phi_args

2016-04-12  Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/68756
	* graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
	instead of new_name.

	* gcc.dg/graphite/pr68756.c: New test.

From-SVN: r234896
parent 4e0eea75
2016-04-12 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/68756
* graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
instead of new_name.
2016-04-12 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/70602
......
......@@ -2439,7 +2439,7 @@ copy_cond_phi_args (gphi *phi, gphi *new_phi, vec<tree> iv_map, bool postpone)
fprintf (dump_file, "\n");
}
gsi_insert_earliest (stmts);
new_phi_args [i] = new_name;
new_phi_args[i] = new_expr;
continue;
}
......
2016-04-12 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/68756
* gcc.dg/graphite/pr68756.c: New test.
2016-04-12 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/70602
......
/* { dg-do compile } */
/* { dg-options "-O1 -floop-nest-optimize" } */
unsigned int z4, pz;
int nn[2];
static unsigned int
xq (unsigned int dj)
{
return dj > 1 ? z4 : z4 + dj;
}
void
la (void)
{
int hd, dl;
unsigned int hn = 0;
for (hd = 0; hd < 2; ++hd)
{
for (dl = 0; dl < 2; ++dl)
nn[dl] = 0;
--hn;
pz = xq (hn);
}
}
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