<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">LLVM targets have other options available to influence the scheduling: From enabling the machine scheduler at all (see TargetSubtargetInfo), to providing a SchedPolicy implementation, providing a scheduling model up to using the MachineScheduler framework to develop your own variant. MachineScheduler.h has a bunch of documentation at the beginning.</div><div class=""><br class=""></div><div class="">- Matthias</div><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 12, 2016, at 11:33 AM, Phil Tomson <<a href="mailto:phil.a.tomson@gmail.com" class="">phil.a.tomson@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Sep 12, 2016 at 11:26 AM, Matthias Braun <span dir="ltr" class=""><<a href="mailto:mbraun@apple.com" target="_blank" class="">mbraun@apple.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">I think those should be considered internal options for (llvm codegen) developers, a normal compiler user should not need to use any of them.</div></div></blockquote><div class=""><br class=""></div><div class="">We're targetting a new processor. I'm trying to get IPC numbers up a bit by trying to figure out how to improve scheduling for our particular architecture. If it turns out that some of these options give us improvements I can have them be 'on' by default for our target.<br class=""><br class=""></div><div class=""> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""> Of course you can look around the llvm sourcecode (esp. in lib/CodeGen/MachineScheduler.<wbr class="">cpp) and see what cl::opt options are available and how they affect the scheduler operation.</div><div class=""><br class=""></div><div class="">In case of the MachineScheduler all settings are the same regardless of the optimisation level, however the MachineScheduler is disabled as a whole in TargetPassConfig.cpp when optimized regalloc is not enabled (which I believe happens for everything except -O0).</div><div class=""><br class=""></div><div class="">- Matthias</div><br class=""><div class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On Sep 12, 2016, at 10:41 AM, Phil Tomson via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class=""></div></div><div class=""><div class=""><div class="h5"><div dir="ltr" class=""><div class="">As a follow on question: which of these options are already enabled when compiling with -O3?<br class=""><br class=""></div>Phil<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Sep 12, 2016 at 10:37 AM, Phil Tomson <span dir="ltr" class=""><<a href="mailto:phil.a.tomson@gmail.com" target="_blank" class="">phil.a.tomson@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class=""><div class=""><div class="">I see that there are several options to influence instruction scheduling, but there doesn't seem to be a lot of information about what they do, for example:<br class=""><br class="">-misched-topdown -misched-bottomup<br class=""><br class=""></div>The description in MachineScheduler.cpp says:<br class=""><br class="">"Force top-down list scheduling" and "Force bottom-up list scheduling"<br class=""><br class=""></div>Which isn't too helpful - where might I want to use these? Under what conditions might they improve an instruction schedule?<br class=""><br class=""></div>Similar questions for the instruction scheduler strategies: <br class=""><br class="">-misched=(default, converge,<br class=""><div class=""><div class="">ilpmax, ilpmin, or shuffle)<br class=""><br class=""></div><div class="">And for the analysis heuristics: <br class=""><br class="">-misched-cluster,<br class="">-misched-cyclicpath, -misched-regpressure, and -misched-<br class="">fusion<br class=""><br class=""></div><div class="">Are these things mutually exclusive or can they be combined? What combination will give the most rigorous analysis and improve scheduling (at the cost of longer runtime of llc)<span class=""><font color="#888888" class=""><br class=""><br class=""></font></span></div><span class=""><font color="#888888" class=""><div class="">Phil<br class=""></div></font></span></div></div>
</blockquote></div><br class=""></div></div></div>
______________________________<wbr class="">_________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank" class="">http://lists.llvm.org/cgi-bin/<wbr class="">mailman/listinfo/llvm-dev</a><br class=""></div></blockquote></div><br class=""></div></blockquote></div><br class=""></div></div>
</div></blockquote></div><br class=""></body></html>