2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dse-34.c
blob3016dfecd3812bd89faf7d921516fd7330c5f348
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-dse1-details" } */
4 void f(int n, char *p0, char *p1, char *p2, char *o)
6 int t0, t1;
7 __builtin_memcpy(&t0, p0, 1);
8 __builtin_memcpy(&t1, p1, 1);
9 if (n==3)
10 __builtin_memcpy(o+2, p2, 1);
11 __builtin_memcpy(o+0, &t0, 1);
12 __builtin_memcpy(o+1, &t1, 1);
15 /* { dg-final { scan-tree-dump-times "Deleted dead store" 2 "dse1" } } */