<div style="font-family: arial, helvetica, sans-serif"><font size="2"><div class="gmail_quote">On Fri, Jun 15, 2012 at 4:12 PM, Andrew Trick <span dir="ltr"><<a href="mailto:atrick@apple.com" target="_blank">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 style="word-wrap:break-word"><br><div><div class="im"><div>On Jun 15, 2012, at 1:30 PM, Chandler Carruth <<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>> wrote:</div>
<br><blockquote type="cite"><div style="font-family:arial,helvetica,sans-serif"><font size="2"><div class="gmail_quote">On Fri, Jun 15, 2012 at 1:07 PM, Andrew Trick <span dir="ltr"><<a href="mailto:atrick@apple.com" target="_blank">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">Author: atrick<br>
Date: Fri Jun 15 15:07:29 2012<br>
New Revision: 158537<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=158537&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=158537&view=rev</a><br>
Log:<br>
LSR: fix expansion of scaled reg in non-address type formulae.<br>
<br>
For non-address users, Base and Scaled registers are not specially<br>
associated to fit an address mode, so SCEVExpander should apply normal<br>
expansion rules. Otherwise we may sink computation into inner loops<br>
that have already been optimized.<br></blockquote><div><br></div><div>Test case possible?</div></div></font></div></blockquote><div><br></div></div><div>Not yet. Or at least I can't think of a way.</div><div><br></div>
<div>There are things we can do to improve the situation a bit:</div><div><a href="http://llvm.org/pr13122" target="_blank">llvm.org/pr13122</a> Need unit test driver for codegen IR passes.</div></div></div></blockquote><div>
<br></div><div>Yea, I suspect that this would require the unittest framework, just wanted to be sure I understood the problems correctly. Thanks. </div></div></font></div>