Displaying 1 result from an estimated 1 matches for "d15eeb13".
2014 Jul 31
2
[LLVMdev] For alias analysis, It's gcc too aggressive or LLVM need to improve?
Hi all,
Recently, I found gcc can generate faster codes by localizing global
variable inside loop and only write back once before function return. Gcc
can do this because its alias analysis think it's safe. But for below case,
gcc gives different result from -O0 and -O2.
#include <stdio.h>
struct heap {int index; int b;};
struct heap **ptr;
int aa;
int main() {
struct heap element;