pr21001.c

来自「linux下编程用 编译软件」· C语言 代码 · 共 22 行

C
22
字号
/* PR tree-optimization/21001   VRP did not insert ASSERT_EXPRs when the variable tested in a   COND_EXPR is a single-use variable.  By propagating the definition   of the single-use variable into the COND_EXPR, we can get useful   range infomation out of the conditional.  *//* { dg-do compile } *//* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-vrp-details" } */intfoo (int a){  int b = a != 0;  if (b)    if (a != 0)      return 1;  return 0;}/* { dg-final { scan-tree-dump-times "Folding predicate" 1 "vrp"} } *//* { dg-final { cleanup-tree-dump "vrp" } } */

⌨️ 快捷键说明

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