Commit 2fe1a1b8 by Bin Cheng Committed by Bin Cheng

tree-vect-loop-manip.c (rename_variables_in_bb): Rename PHI nodes when copying…

tree-vect-loop-manip.c (rename_variables_in_bb): Rename PHI nodes when copying loop nest with only one inner loop.

	* tree-vect-loop-manip.c (rename_variables_in_bb): Rename PHI nodes
	when copying loop nest with only one inner loop.

	gcc/testsuite
	* gcc.dg/tree-ssa/ldist-34.c: New test.

From-SVN: r253586
parent fb1fe1f3
2017-10-10 Bin Cheng <bin.cheng@arm.com>
* tree-vect-loop-manip.c (rename_variables_in_bb): Rename PHI nodes
when copying loop nest with only one inner loop.
2017-10-10 Richard Biener <rguenther@suse.de>
* tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Avoid compacting
2017-10-10 Bin Cheng <bin.cheng@arm.com>
* gcc.dg/tree-ssa/ldist-34.c: New test.
2017-10-10 Bin Cheng <bin.cheng@arm.com>
* gcc.dg/tree-ssa/ldist-27.c: New test.
2017-10-09 Ed Schonberg <schonberg@adacore.com>
......
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-loop-distribution" } */
#define X (3.0)
int b, c;
double a[30000];
int foo () {
for (int i = 0; i < 100; ++i) {
for (int j = 0; j < c; ++j)
if (b)
a[0] = b;
a[i * 100] = a[1] = X;
}
return 0;
}
......@@ -117,8 +117,6 @@ rename_variables_in_bb (basic_block bb, bool rename_from_outer_loop)
|| single_pred (e->src) != outer_loop->header)
continue;
}
else
continue;
}
}
for (gphi_iterator gsi = gsi_start_phis (bb); !gsi_end_p (gsi);
......
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