[LLVMdev] A very basic doubt about LLVM Alias Analysis

ambika ambika at cse.iitb.ac.in
Sun Feb 14 08:39:31 PST 2010

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;
        return 0;

here too i dont get <i,j> alias each other.
Duncan Sands wrote:
> Hi ambika,
>> main() {
>>     int i,*k;
>>     k = &i;
>> then why dont i get {k -> i} ie k is aliased to i in any of the 
>> analysis.
> only pointers can alias each other, and i is not a pointer.
> Ciao,
> Duncan.

More information about the llvm-dev mailing list