Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-14.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-14.c Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-14.c Thu Oct 25 07:37:49 2018 +0900 @@ -1,8 +1,5 @@ -/* PR tree-optimization/29738. We used not to realize that "i" can never - become nonzero. */ - /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-optimized" } */ +/* { dg-options "-O2 -fdump-tree-fre1 -fdump-tree-optimized" } */ int i; @@ -16,5 +13,7 @@ foo (); } -/* Everything except for the "i = 0" assignment should get removed. */ -/* { dg-final { scan-tree-dump-times "if" 0 "optimized" { xfail *-*-* } } } */ +/* Everything except for the "i = 0" assignment should get removed. Value + numbering already figures out the if in the loop is never true. */ +/* { dg-final { scan-tree-dump-times "foo" 0 "fre1" } } */ +/* { dg-final { scan-tree-dump-times "if" 0 "optimized" } } */