re PR tree-optimization/50763 (ICE: verify_gimple failed: missing PHI def with -ftree-tail-merge)

2011-10-23  Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/50763
	* gcc.dg/pr50763.c: New test.

From-SVN: r180342
This commit is contained in:
Tom de Vries 2011-10-23 16:06:40 +00:00 committed by Tom de Vries
parent 4cbdcd40fa
commit 19b6a33daa
2 changed files with 21 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-10-23 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/50763
* gcc.dg/pr50763.c: New test.
2011-10-23 Uros Bizjak <ubizjak@gmail.com>
PR target/50788

View file

@ -0,0 +1,16 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-pre" } */
int bar (int i);
void
foo (int c, int d)
{
if (bar (c))
bar (c);
d = 33;
while (c == d);
}
/* { dg-final { scan-tree-dump-times "== 33" 1 "pre"} } */
/* { dg-final { cleanup-tree-dump "pre" } } */