1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* { dg-do compile } */ /* { dg-options "-O2 -ftree-cselim -fdump-tree-cselim-details" } */ int *t; int f1 (int tt) { int *t1 = t; *t1 = -5; if (*t1 < tt) *((unsigned *) t1) = 5; return *t1; } /* { dg-final { scan-tree-dump "Conditional store replacement" "cselim" } } */