Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/pr61607.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-Os -fno-tree-fre -fdump-tree-dom2" } */ void foo(int *); void f2(int dst[3], int R) { int i, inter[2]; _Bool inter0p = 0; _Bool inter1p = 0; for (i = 1; i < R; i++) { inter0p = 1; inter1p = 1; } if (inter0p) inter[0] = 1; if (inter1p) inter[1] = 1; foo(inter); } /* There should be precisely two conditionals. One for the loop condition and one for the test after the loop. Previously we failed to eliminate the second conditional after the loop. */ /* { dg-final { scan-tree-dump-times "if" 2 "dom2"} } */