reassoc-1.c
来自「用于进行gcc测试」· C语言 代码 · 共 19 行
C
19 行
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */int a, b, c, d;extern int printf (const char *, ...);int main(void){ int e; int f; /* We should be able to transform these into the same expression, and only have two additions. */ e = a + b; e = e + c; f = c + a; f = f + b; printf ("%d %d\n", e, f);}/* { dg-final { scan-tree-dump-times "b \\\+ a" 1 "optimized"} } *//* { dg-final { cleanup-tree-dump "optimized" } } */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?