Commit 2824a5c3 by Zdenek Dvorak Committed by Zdenek Dvorak

re PR tree-optimization/22442 (scev cprop causes wrong code)

	PR tree-optimizatio/22442
	* gcc.dg/tree-ssa/loop-11.c: New test.

From-SVN: r101963
parent 2c5f025d
2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimizatio/22442
* gcc.dg/tree-ssa/loop-11.c: New test.
2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/21840
......
/* A test for final value replacement and higher-order ivs,
see PR 22442. */
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-vars" } */
void bar (unsigned);
void foo (void)
{
unsigned i, a;
for (i = 0; i < 5; i++)
a = i * i;
bar (a);
}
/* Final value of a gets replaced. */
/* { dg-final { scan-tree-dump-times "\\(16\\)" 1 "vars" } } */
/* And the empty loop is removed. */
/* { dg-final { scan-tree-dump-times "if " 0 "vars" } } */
/* { dg-final { cleanup-tree-dump "vars" } } */
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