Displaying 1 result from an estimated 1 matches for "51a3a7c9".
2015 Feb 20
3
[LLVMdev] basicaa result
Hi,
I'm trying to explore basicaa alias analysis.
test.c:
int main() {
     int a;
     int *p, *q;
     p = &a;
     q = p;
     ...
}
Commands:
clang -emit-llvm -c -g -O0 test.c -o test.bc
opt -basicaa -print-must-aliases test.bc
However, the result shows that p and q are no alias.
Could anyone explain it? Your help is much appreciated!
-Haopeng