Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-4.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dse1" } */
3
4 void
5 foo( int *a)
6 {
7 *a = 5;
8 *a = 3;
9 }
10
11 /* We should eliminate the first assignment to *p, but not the second. */
12 /* { dg-final { scan-tree-dump-times "= 5" 0 "dse1"} } */
13 /* { dg-final { scan-tree-dump-times "= 3" 1 "dse1"} } */
14