Debian Codegraph @

gcc/testsuite/gcc.dg/ipa/ipa-icf-40.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-icf-optimized" } */
3
4 int c0 = 0;
5 typedef int v4si __attribute__((vector_size(4*sizeof(int))));
6 v4si a;
7 int f()
8 {
9 return a[c0];
10 }
11 int g()
12 {
13 return a[c0];
14 }
15
16 /* { dg-final { scan-ipa-dump "optimized: Semantic equality hit:f/\[0-9+\]+->g/\[0-9+\]+" "icf" } } */