<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 Apr 18, 2012, at 4:51 PM, Chandler Carruth <<a href="mailto:chandlerc@google.com">chandlerc@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Cool, one somewhat unrelated question...<br><br><div class="gmail_quote">On Wed, Apr 18, 2012 at 4:48 PM, Jakob Stoklund Olesen <span dir="ltr"><<a href="mailto:stoklund@2pi.dk">stoklund@2pi.dk</a>></span> wrote:<br>
<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; position: static; z-index: auto; "><div class="im">> Can we add a test for the LSR usage as well? Maybe using the same pattern as above?<br>
<br>
</div>LSR is using SCEV, so I am not so worried about that. LSR tests are also tricky because it needs target information, so it can only be run from llc.</blockquote></div><br><div>Does the newly added '-mtriple' flag to opt allow us to give LSR the targetinfo it needs? If not, could we add an opt flag to make this easier? Just a random thought.</div>
</blockquote></div><br><div>I don't think it works, unfortunately.</div><div><br></div><div>LSR needs a TargetLoweringInfo pointer, and opt -mtriple only sets the Module triple. I think it might be a library dependency issue?</div><div><br></div><div>It is possible to run llc -print-lsr-output, though. You'll get IR followed by assembly.</div><div><br></div><div>/jakob</div><div><br></div></body></html>