Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/reassoc-12.c

raw
1 /* { dg-do compile } */
2 /* Match-and-simplify can handle now MAX<MAX<a,b>,a>->MAX<a,b>, disable all of the passes that uses that. */
3 /* { dg-options "-O1 -fdump-tree-reassoc1-details -fno-tree-ccp -fno-tree-ccp -fno-tree-forwprop -fno-tree-fre" } */
4 int f(int a, int b)
5 {
6 /* MAX_EXPR <a, a> should cause it to be equivalent to a. */
7 int c = a>=b?a:b;
8 int d = c>=a?c:a;
9 return d;
10 }
11 /* { dg-final { scan-tree-dump-times "Equivalence:" 1 "reassoc1"} } */