[LLVMdev] A very basic doubt about LLVM Alias Analysis

Duncan Sands baldrick at free.fr
Sun Feb 14 09:34:19 PST 2010


Hi Ambika,

> Oh m sorry for that mistake as I had points to in mind.
> But still what about the following prog:
> 
> int main()
> {
>        int *i,*j,k;
>        i=&k;
>        j=&k;
>        k=4;
>        printf("%d,%d,%d",*i,*j,k);
>        return 0;
> }
> 
> 
> here too i dont get <i,j> alias each other.

how are you compiling to bitcode, and how are you determining that alias
analysis thinks they don't alias?

Ciao,

Duncan.



More information about the llvm-dev mailing list