<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 28, 2014 at 4:40 PM, Adam Nemet <span dir="ltr"><<a href="mailto:anemet@apple.com" target="_blank">anemet@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 class="adM"><div class=""><br><div><div>On Apr 28, 2014, at 4:32 PM, Chandler Carruth <<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 28, 2014 at 4:09 PM, Adam Nemet <span dir="ltr"><<a href="mailto:anemet@apple.com" target="_blank">anemet@apple.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I’ll revert the test case until we investigate but clang does get substituted in test/lit.cfg.</blockquote></div><br>What if you don't have Clang checked out?</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">This is just not the right way to test this. We need to have an IR test case, not a C test case.</div></div></blockquote></div><div><br></div></div></div><div>The problem is that this test case is sensitive to use list ordering and it simply does not reproduce with llc.</div>
</blockquote><div><br></div><div>Then we have a more fundamental problem with our testing methodology. While the use-def chain ordering changing can make it hard to reproduce things in a reduced test case, usually it is still possible as long as you aren't re-serializing through bitcode between every step.</div>
<div><br></div><div>What might be a much bigger problem is that there are a few cases where llc does not drive the code generator the same way as clang does. This is an area where we typically need to fix/extend the command line of llc to provide mode of executing that exactly mirrors Clang.</div>
<div><br></div><div>Either way, we test LLVM exclusively with LLVM's testing tools. If we aren't able to trigger a bug with them despite having a reasonably small test case, there is a fundamental and really severe problem with those testing tools. We need to fix that, not just force the use of Clang.</div>
</div><br></div></div>