<div dir="ltr"><div>If you are certain it's the LegalizeTypes (did you isolate it to this?), diff the versions up, I'm sure you'll find your answer.</div><div><br></div><div>-Ryan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 27, 2016 at 1:07 PM, xiaoyong liu via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Absolutely, James. I was with LLVM from very beginning. And keep everything up-to-date.</p>
<p>The background is the new product was inherited. It took time to upgrade. </p>
<p><br>
</p>
<p>To the problem: If anyone meet the similar issue, pls kindly share.</p>
<p><br>
</p>
</div>
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> James Y Knight <<a href="mailto:jyknight@google.com" target="_blank">jyknight@google.com</a>><br>
<b>Sent:</b> Tuesday, September 27, 2016 8:25:55 AM<br>
<b>To:</b> xiaoyong liu<br>
<b>Cc:</b> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<b>Subject:</b> Re: [llvm-dev] SelectionDAG::LegalizeTypes is very slow in 3.1 version</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">You realize 3.1 was released **4 years ago**, and that there's been more than 50,000 commits to llvm since then (not even including commits to clang and other pieces!), right?
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Sep 27, 2016 at 2:20 AM, xiaoyong liu via llvm-dev
<span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>In 3.1, the backend is very slow to legalize types. </p>
<p><br>
</p>
<p>Following is the code snippet which may be the culprit:</p>
<p></p>
<div> %Result.i.i.i97 = alloca i33, align 8<br>
%Result.i.i.i96= alloca i33, align 8<br>
%Result.i.i.i95 = alloca i33, align 8<br>
%Result.i.i.i94 = alloca i33, align 8<br>
%Result.i.i.i93 = alloca i33, align 8<br>
%Result.i.i.i92= alloca i33, align 8<br>
%Result.i.i.i91 = alloca i33, align 8<br>
%Result.i.i.i90 = alloca i33, align 8<br>
%Result.i.i.i89 = alloca i33, align 8<br>
</div>
<p></p>
<p><br>
</p>
<p>The compilation time improve significant if running on LLVM 3.9. Unfortunately, it's not a choice for me now to upgrade it to 3.9.</p>
<p>If anyone luckily to know what's the evolution in this area to improve the compilation time performance, pls kindly comments.</p>
<p><br>
</p>
<p>thanks</p>
<span><font color="#888888">
<p>Xiaoyong</p>
<p><br>
</p>
</font></span></div>
</div>
<br>
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank" rel="noreferrer">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank" rel="noreferrer">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>