phi-opt-1.c

来自「用于进行gcc测试」· C语言 代码 · 共 20 行

C
20
字号
/* { dg-do compile } *//* { dg-options "-O1 -fdump-tree-optimized" } */int f(int a, int b, int c){  if (c == 0) goto temp;  if (a == 0)   return 0;temp:  if (a == b)   return a; return a;}/* There should be no ifs as the PHI arguments, we did not   optimize this before because PHI-OPT did not look at    PHIs which have more than two arguments.  *//* { dg-final { scan-tree-dump-times "if" 0 "optimized"} } *//* { dg-final { cleanup-tree-dump "optimized" } } */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?