<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; "><br><div><div>On Jun 24, 2013, at 2:47 AM, Chandler Carruth <<a href="mailto:chandlerc@google.com">chandlerc@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 24, 2013 at 2:41 AM, Andrew Trick <span dir="ltr"><<a href="mailto:atrick@apple.com" target="_blank" class="cremed">atrick@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":3ci" style="overflow:hidden">I'm briefly enabling the MachineScheduler pass for x86 tonight to collect information on any failures that may show up.<br>

<br>
To properly enable the new scheduler, this hook is implemented in X86Subtarget:<br>
<br>
  bool enableMachineScheduler() const LLVM_OVERRIDE { return true; }<br>
<br>
The MachineScheduler pass itself can be enabled/disabled with -enable-misched=true/false. But most of the codegen changes result rather from moving to source-order SD scheduling and subsequent register coalescing decisions. This makes it extremely challenging to keep the unit tests functioning during the transition. So you'll see unit test churn when I flip the switch.</div>
</blockquote></div><br>This is really cool. Is there a way to provide a flag to enable the whole thing so that folks can help you test stuff in advance of making it the default? (Yes, I'm volunteering. =D)</div></div>
</blockquote></div><br><div>I'll probably turn it off soon ;)</div><div><br></div><div>If want the same behavior as the target hook you can use these flags:</div><div><br></div><div>-pre-RA-sched=source -join-globalcopies -enable-misched</div><div><br></div><div>Thanks for any testing! Bug reports would be great.</div><div><br></div><div>-Andy</div></body></html>