<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 4/16/2018 11:13 AM, Mustakimur
Khandaker wrote:<br>
</div>
<blockquote type="cite"
cite="mid:BLUPR05MB706501E403BE61FB4CB1DB0EFB00@BLUPR05MB706.namprd05.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;"
dir="ltr">
<p style="margin-top:0;margin-bottom:0">Okay, I have tried the
following:</p>
<p style="margin-top:0;margin-bottom:0"><span> bin/opt -mem2reg
-basicaa -cfl-anders-aa -print-alias-sets bin/test/test.bc</span><br>
</p>
<p style="margin-top:0;margin-bottom:0"><span>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?</span></p>
</div>
</blockquote>
<br>
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".<br>
<br>
-Eli<br>
<pre class="moz-signature" cols="72">--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project</pre>
</body>
</html>