[llvm-dev] LLVM Alias Analysis (Load and store from same address is not showed up in same set)

Friedman, Eli via llvm-dev llvm-dev at lists.llvm.org
Mon Apr 16 12:54:09 PDT 2018


On 4/16/2018 11:13 AM, Mustakimur Khandaker wrote:
>
> Okay, I have tried the following:
>
>  bin/opt -mem2reg -basicaa -cfl-anders-aa -print-alias-sets 
> bin/test/test.bc
>
> But, the result is same as last time. Do you mean something like this 
> to try? Can you suggest what else could be an important factor for 
> this issue?
>

The functions in your IR are marked optnone because you compiled it at 
-O0, so mem2reg will refuse to transform them.  If you need clang to 
generate unoptimized IR without the optnone flag, you can use "clang -O2 
-mllvm -disable-llvm-optzns".

-Eli

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180416/26fc3a02/attachment.html>


More information about the llvm-dev mailing list