Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ffast-math -fdump-tree-reassoc1" } */
3
4 double test1 (double x, double y, double z, double weight)
5 {
6 double tmp1 = x / weight;
7 double tmp2 = y / weight;
8 double tmp3 = -x / weight;
9 return tmp1 + tmp2 + tmp3;
10 }
11
12 /* The division should be un-distributed and all references to x should
13 be gone. */
14
15 /* { dg-final { scan-tree-dump-times "/" 1 "reassoc1" } } */