Commit 63fdb7be by Richard Biener Committed by Richard Biener

re PR tree-optimization/57511 (Missing SCEV final value replacement)

2013-09-02  Richard Biener  <rguenther@suse.de>

	PR middle-end/57511
	* tree-scalar-evolution.c (instantiate_scev_name): Allow
	non-linear SCEVs.

	* gcc.dg/tree-ssa/sccp-1.c: New testcase.

From-SVN: r202168
parent 78de2333
2013-09-02 Richard Biener <rguenther@suse.de>
PR middle-end/57511
* tree-scalar-evolution.c (instantiate_scev_name): Allow
non-linear SCEVs.
2013-09-02 Richard Biener <rguenther@suse.de>
* tree-affine.c (add_elt_to_tree): Avoid converting all pointer
arithmetic to sizetype.
......
2013-09-02 Richard Biener <rguenther@suse.de>
PR middle-end/57511
* gcc.dg/tree-ssa/sccp-1.c: New testcase.
2013-09-02 Richard Biener <rguenther@suse.de>
* gcc.dg/tree-ssa/loop-4.c: Adjust scan looking for one memory
reference.
......
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
int main(int argc, char* argv[])
{
int i, a = 0;
for (i=0; i < 10; i++)
a += i + 0xff00ff;
return a;
}
/* There should be no loop left. */
/* { dg-final { scan-tree-dump-times "goto" 0 "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
......@@ -2252,6 +2252,7 @@ instantiate_scev_name (basic_block instantiate_below,
else if (res != chrec_dont_know)
{
if (inner_loop
&& def_bb->loop_father != inner_loop
&& !flow_loop_nested_p (def_bb->loop_father, inner_loop))
/* ??? We could try to compute the overall effect of the loop here. */
res = chrec_dont_know;
......
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