<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
After discussing this with Bill Schmidt I did an experimental change in<br>
FastISelEmitter.cpp to use the instruction complexity to order the<br>
generated code pieces kind of like what is done for normal codegen.<br>
Instead of using a map I use a multimap because there are instructions<br>
with duplicate complexities. I also fixed the broken testing that is<br>
done to look for errors and some other necessary changes.<br>
<br>
This works just fine for Power and looking through a few of the other<br>
generated .inc files doesn't appear to have broken anything obvious<br>
though the order is different.<br>
<br>
As this is a fairly significant change I am bringing it up for<br>
discussion here.<br><br></blockquote><div><br></div><div>So yeah, Bill and I were talking about this at the Dev Meeting. I'm a fan of this, and it's probably better than saying "Put this earlier/later in the file to get the code generation you want"</div><div><br></div><div>-eric</div></div>