<div dir="ltr"><div>On 7 February 2013 05:55, Nadav Rotem <span dir="ltr"><<a href="mailto:nrotem@apple.com" target="_blank">nrotem@apple.com</a>></span> wrote:<br></div><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div>I am not sure that its worth modeling this because it only affects the latency and not the throughput of the machine. </div>
</div></blockquote><div><br></div><div style>It seems like penalizing the insertion into a D-subregister is getting out of hand. This is likely to occur when dealing with relative numbers (like instruction costs), so I'm not particularly excited about this patch, either. I'm also not unhappy, so if there is a tangible benefit, by all means...</div>
<div style><br></div><div style>Some specific questions:</div><div><br></div><div><div>+      if (Stride > 0)</div><div>+        return Cost;</div><div><br></div><div>Can the stride ever be zero?</div><div><br></div><div>
<div>-    return 2;</div><div>+    return 3;</div><div><br></div><div>This seems arbitrary (I know it's not but), would be good to have them exposed as function calls, for instance, getAddressComputationCost() + whatever.</div>
</div></div><div><br></div><div style>cheers,</div><div style>--renato</div></div></div></div>