Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/forwprop-31.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O -fno-tree-ccp -fdump-tree-forwprop1" } */ int foo (int x) { int y = 0; int z = x + 1; int w = z + y; /* becomes z */ return w - z; /* becomes 0 */ } /* The original y = 0 stmt is also retained. */ /* { dg-final { scan-tree-dump-times "= 0;" 2 "forwprop1" } } */ /* { dg-final { scan-tree-dump-times "-" 0 "forwprop1" } } */ /* { dg-final { scan-tree-dump-times "\\+" 1 "forwprop1" } } */