[LLVMdev] Incorrect result in LLVM Alias Analysis
陳韋任
chenwj at iis.sinica.edu.tw
Fri Apr 6 00:23:33 PDT 2012
> I use the below code for this (getAnalysisUsage method has been defined)
>
> AliasAnalysis::Location loc1=AliasAnalysis::Location(k1); //a
> AliasAnalysis::Location loc2=AliasAnalysis::Location(k2); //b
> AliasAnalysis::AliasResult ar=AA.alias(loc1,loc2);
>
> But I get ar=1 i.e May Alias result. Where am I going wrong? I have
> included -basicaa option in the opt command for running this.
LLVM alias analysis might be not so powerful at this moment, I guess.
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj
More information about the llvm-dev
mailing list