blob: 6cd37a20643161365cbc6975d8d39fe98271d16f [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-evrp " } */
void foo();
static void __attribute__ ((noinline)) DCEMarker0_() {foo ();}
void f(bool s, bool c) {
if ((!c == !s) && !c) {
if (s) {
DCEMarker0_();
}
}
}
// With equivalences, vrp should be able to remove all IFs.
/* { dg-final { scan-tree-dump-not "goto" "evrp" } } */