<div dir="ltr">I personally think it'd be best done as late as possible, that way we can crank the heuristics all the way up to 11 and still hopefully not regress code.<br></div><br><div class="gmail_quote">On Thu, 14 May 2015 at 22:01 Sanjay Patel <<a href="mailto:spatel@rotateright.com">spatel@rotateright.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, May 14, 2015 at 2:24 PM, James Molloy <<a href="mailto:james@jamesmolloy.co.uk" target="_blank">james@jamesmolloy.co.uk</a>> wrote:<br>
<br>
> It sounds like the best time to do this if at all possible is in MachineInst form,<br>
<br>
> where we have MachineTraceMetrics and accurate register pressure information.<br>
<br>
><br>
<br>
> Is there a reason why you're not doing it there? I know it's more awkward, but<br>
<br>
> it really seems we need accurate register pressure if we're not going to make it<br>
<br>
> cripplingly conservative.<br>
<br>
<br>
I only have marginal reasons for trying this here rather than with MachineInsts: I really wanted to make this easy for any target to opt-in, nobody pushed me away from a DAG transform, and I've never attempted a machine-level transform. If the consensus is that it's better done later when we have more register knowledge, I'll certainly give it a try.<br>
<br>
<br>
<a href="http://reviews.llvm.org/D9780" target="_blank">http://reviews.llvm.org/D9780</a><br>
<br>
EMAIL PREFERENCES<br>
  <a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>