<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    <div class="moz-cite-prefix">On 02/19/2016 04:47 AM, Norilo
      Vesa-Petri via llvm-dev wrote:<br>
    </div>
    <blockquote
cite="mid:HE1PR01MB077770A69862A83782BE3DD6DCA00@HE1PR01MB0777.eurprd01.prod.exchangelabs.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style>
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="FI">Dear LLVMers,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="FI">I’m investigating the
            response time of my JIT, and according to profiling,
            optimization takes 85% of the compile time, while the rest
            is being split evenly between the front-end and machine code
            generation. Much of the optimizer time is spent in various
            alias analysis passes. </span></p>
      </div>
    </blockquote>
    Could you share more detailed profiling information?  It's possible
    you're tripping across a compile time bug or that seeing what
    sections are hot would given insights into how to tweak your code to
    avoid the problem.  <br>
    <blockquote
cite="mid:HE1PR01MB077770A69862A83782BE3DD6DCA00@HE1PR01MB0777.eurprd01.prod.exchangelabs.com"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="FI"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="FI">I’m happy with the
            generated code quality and wouldn’t like to lower the
            optimization level (O2).<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="FI">Would generating alias
            metadata from the front-end help and speed up optimization?
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="FI">If so, what kind of AA
            would have the best return on investment in terms of compile
            time? TBAA is not applicable to my language, but I could
            provide C99 restrict and related semantics fairly easily.</span></p>
      </div>
    </blockquote>
    In general, if you can give "easier" answers, that's always a good
    thing.  If you're using LLVM for inlining, you may find that
    "noalias" attributes are quite useful for controlling compile time
    (i.e. enable optimizations of callee before inlining).  Without
    knowing more about your source language and where you're currently
    spending time, I can't really help more than that.  <br>
    <blockquote
cite="mid:HE1PR01MB077770A69862A83782BE3DD6DCA00@HE1PR01MB0777.eurprd01.prod.exchangelabs.com"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="FI"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="FI">Thanks!!<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Vesa Norilo<br>
          Lecturer<br>
          Centre for Music and Technology<br>
          University of Arts Helsinki</p>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif"><o:p> </o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>