<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Lang,<br>
    <br>
    > can you share your EngineBuilder configuration lines?<br>
    <br>
    Sure.<br>
    <br>
    The 3.5.2 version use:<br>
    <br>
    <big><big><tt>        llvm::ExecutionEngine* ee =</tt><tt><br>
        </tt><tt>            llvm::EngineBuilder(module)</tt><tt><br>
        </tt><tt>                .setEngineKind(llvm::EngineKind::JIT)</tt><tt><br>
        </tt><tt>               
          .setOptLevel(llvm::CodeGenOpt::Aggressive)</tt><tt><br>
        </tt><tt>                .create();</tt><tt><br>
        </tt><tt><br>
        </tt><tt>       
          module->setDataLayout(ee->getTargetMachine()->getDataLayout());</tt><tt><br>
        </tt></big></big><br>
    And the 3.7.1 version use:<br>
    <br>
    <big><big><tt>        llvm::EngineBuilder builder(move(modulePtr));</tt><tt><br>
        </tt><tt><br>
        </tt><tt>        builder.setEngineKind(llvm::EngineKind::JIT);</tt><tt><br>
        </tt><tt>        builder.setErrorStr(&error);</tt><tt><br>
        </tt><tt>       
          builder.setOptLevel(llvm::CodeGenOpt::Aggressive);</tt><tt><br>
        </tt><tt><br>
        </tt><tt>        llvm::ExecutionEngine* ee = builder.create();<br>
          <br>
                 
module->setDataLayout(*ee->getTargetMachine()->getDataLayout());<br>
        </tt><tt></tt></big></big><br>
    Cheers<br>
    Morten<br>
    <br>
    <div class="moz-cite-prefix">On 05/02/16 19:13, Lang Hames wrote:<br>
    </div>
    <blockquote
      cite="mid:3DEAD961-D989-40C6-A314-BBC51183F591@gmail.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div>Hi Morten,</div>
      <div id="AppleMailSignature"><br>
      </div>
      <div id="AppleMailSignature">Something else just occurred to me:
        can you share your EngineBuilder configuration lines? (<a
          moz-do-not-send="true"
          href="http://llvm.org/docs/doxygen/html/classllvm_1_1EngineBuilder.html"><a class="moz-txt-link-freetext" href="http://llvm.org/docs/doxygen/html/classllvm_1_1EngineBuilder.html">http://llvm.org/docs/doxygen/html/classllvm_1_1EngineBuilder.html</a></a>)</div>
      <div id="AppleMailSignature"><br>
      </div>
      <div id="AppleMailSignature">In particular - are you explicitly
        setting the optimization level? The old JIT may have had a
        different default.</div>
      <div id="AppleMailSignature"><br>
      </div>
      <div id="AppleMailSignature">- Lang.</div>
      <div id="AppleMailSignature"><br>
      </div>
      <div id="AppleMailSignature"><br>
        <br>
        Sent from my iPad</div>
      <div><br>
        On Feb 4, 2016, at 10:54 PM, Jim Grosbach via llvm-dev <<a
          moz-do-not-send="true" href="mailto:llvm-dev@lists.llvm.org"><a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a></a>>
        wrote:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div>
          <meta http-equiv="content-type" content="text/html;
            charset=utf-8">
          <div>I agree with Lang and Keno here. This is both unexpected
            and very interesting. Given the differences in defaults
            between the two, I would have expected the new JIT to have
            better performance but longer compile times. That you are
            seeing the opposite implies there is something very wrong
            and I'm very interested to help figure out what it is. <br>
            <br>
            Sent from my iPad</div>
          <div><br>
            On Feb 4, 2016, at 9:12 PM, Morten Brodersen via llvm-dev
            <<a moz-do-not-send="true"
              href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>>
            wrote:<br>
            <br>
          </div>
          <blockquote type="cite">
            <div>
              <meta content="text/html; charset=utf-8"
                http-equiv="Content-Type">
              Hi Keno,<br>
              <br>
              I am talking about runtime. The performance of the
              generated machine code. Not the time it takes to lower the
              IR to machine code.<br>
              <br>
              We typically only JIT once (taking a few secs) and then
              run the generated machine code for hours. So the JIT time
              (IR -> machine code) doesn't impact us.<br>
              <br>
              Cheers<br>
              Morten<br>
              <br>
              <div class="moz-cite-prefix">On 05/02/16 15:58, Keno
                Fischer wrote:<br>
              </div>
              <blockquote
cite="mid:CAEoGj_8yXx_copTV6=Qy3jrKK=CzQLANaSoHwFi3+tVyC0YKTA@mail.gmail.com"
                type="cite">
                <div dir="ltr">Actually, reading over all of this again,
                  I realize I may have made the wrong statement. The
                  runtime regressions we see in julia are actually
                  regressions in how long LLVM itself takes to do the
                  compilation (but since it happens at run time in the
                  JIT case, I think of it as a regression in our running
                  time). We have only noticed occasional regressions in
                  the performance of the generated code (which we are in
                  the process of fixing). Which kind of regression are
                  you talking about, time taken by LLVM or time taken by
                  the LLVM-generated code?</div>
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">On Thu, Feb 4, 2016 at 11:44
                    PM, Rafael Espíndola <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:llvm-dev@lists.llvm.org"
                        target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a></a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">On
                      4 February 2016 at 22:48, Morten Brodersen via
                      llvm-dev<br>
                      <span class=""><<a moz-do-not-send="true"
                          href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>>

                        wrote:<br>
                        > Hi Rafael,<br>
                        ><br>
                        > Not easily (llc).<br>
                        ><br>
                        > Is there a way to make MCJit not use the
                        large code model when JIT'ing?<br>
                        ><br>
                        <br>
                      </span>I think Davide started adding support for
                      the small code model.<br>
                      <br>
                      Cheers,<br>
                      Rafael<br>
                      <div class="HOEnZb">
                        <div class="h5">_______________________________________________<br>
                          LLVM Developers mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
                          <a moz-do-not-send="true"
                            href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev"
                            rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </blockquote>
              <br>
            </div>
          </blockquote>
          <blockquote type="cite">
            <div><span>_______________________________________________</span><br>
              <span>LLVM Developers mailing list</span><br>
              <span><a moz-do-not-send="true"
                  href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a></span><br>
              <span><a moz-do-not-send="true"
                  href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a></span><br>
            </div>
          </blockquote>
        </div>
      </blockquote>
      <blockquote type="cite">
        <div><span>_______________________________________________</span><br>
          <span>LLVM Developers mailing list</span><br>
          <span><a moz-do-not-send="true"
              href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a></span><br>
          <span><a moz-do-not-send="true"
              href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a></span><br>
        </div>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>