pr21031.c
来自「linux下编程用 编译软件」· C语言 代码 · 共 21 行
C
21 行
/* PR tree-optimization/21031 Make sure that a != 0 is propagated into the "if" statement. *//* { dg-do compile } *//* { dg-options "-O1 -fdump-tree-forwprop1-details" } */intfoo (int a){ int b = a != 0; unsigned char c = b; if (c) return 1; else return 0;}/* { dg-final { scan-tree-dump-times "Replaced" 2 "forwprop1"} } *//* { dg-final { cleanup-tree-dump "forwprop1" } } */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?