[LLVMdev] A very basic doubt about LLVM Alias Analysis

Duncan Sands baldrick at free.fr
Sun Feb 14 10:21:16 PST 2010

Hi Ambika,

> to compile it to bitcode I give the following command :
>   llvm-gcc -emit-llvm -c -o s.bc s.c
> and then I run different alias analysis passes like -anders-aa, -basicaa 
> using following:
>   opt -anders-aa -aa-eval -print-all-alias-modref-info  s.bc

alias analysis will work poorly if you don't run any optimizers.
The alias analysis passes assume that at least some basic optimizations
have been done.  Try compiling like this:

   llvm-gcc -emit-llvm -c -o s.bc s.c -O1



More information about the llvm-dev mailing list