<div dir="ltr">I have already applied opt. so here my lli has IR emitted from opt which is optimized.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 24, 2017 at 12:31 PM, Paweł Bylica <span dir="ltr"><<a href="mailto:chfast@gmail.com" target="_blank">chfast@gmail.com</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 class="gmail_extra"><div class="gmail_quote"><span class="">On Thu, Aug 24, 2017 at 9:21 AM, hameeza ahmed 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">Hello,<div>there are several optimization levels in lli like O0, O1, O2, O3. What does they mean? how the run time optimization is performed in LLVM JIT?</div><div><br></div><div>I am working on a project where my goal is to study the impact of lli optimizations. here my IR is already optimized through opt. now i have to perform lli optimizations provided i am giving varying inputs at run time. so i suppose here my optimization level also depends on runtime input. like,</div><div>i am using following command.</div><div><br></div><div>time lli -O3 sum-vec03.ll  5 2<br></div></div></blockquote><div><br></div></span><div>If I'm not wrong, there are 2 distinct subsystems were optimizations can be applied. In case of lli, JIT, llc, and others the optimization level is applied to the CodeGen. The LLVM IR is the input for them and is not optimized. If you need both you have to run opt to optimize IR first. Then lli.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr"><div></div><div><br></div><div>also after acquiring the execution time at different scenarios i plan to use some machine learning algorithm in order to predict the appropriate flag setting for given program and run time input.</div><div><br></div><div>Please help. Does this look appropriate approach? is my methodology correct?</div><div><br></div><div>Thank You</div></div>
<br></span>______________________________<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" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div>