search for: g_3461

Displaying 1 result from an estimated 1 matches for "g_3461".

Did you mean: 3461
2013 Aug 26
0
[LLVMdev] Question about boolean type variable generation of Global Variable Optimization
Hi all, I have tested a simple example with '-Ox' optimization options and saw transformation from specific global variable to boolean variable. I would like to know what kind of advantages come from this . The simplified example is as following: Source code: static unsigned int g_3461 = 0xffffffff; unsigned int test(unsigned int a) { printf("g_3461=%d\n", g_3461); g_3461 = 0; return a; } int main(void) { int d; scanf("%d\n", &d); if (g_3461 + d) { test(g_3461); return 0; } else return 1; } Globa...