<div dir="ltr">r304993.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 7, 2017 at 4:16 PM, Galina Kistanova <span dir="ltr"><<a href="mailto:gkistanova@gmail.com" target="_blank">gkistanova@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8px">Hi James.</span><br></div><div><br></div>Of course. No worries.<div><br></div><div>I'm going to change that <span style="font-size:12.8px">comparison operator to return A > B, and will disable the test that would be failing because of that change.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Good luck with the job transition.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks<span class="HOEnZb"><font color="#888888"><br><br></font></span></span></div><span class="HOEnZb"><font color="#888888"><div><span style="font-size:12.8px">Galina<br><br><br></span></div></font></span><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 7, 2017 at 2:06 AM, James Molloy <span dir="ltr"><<a href="mailto:james@jamesmolloy.co.uk" target="_blank">james@jamesmolloy.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Galina,<br><br>Apologies, I am between jobs at the moment and do not have access to any machine that can build LLVM. I will have access to one on Monday evening when I start with Google. <br><br>In the meantime perhaps you could commit the minimal change to make the bot green and I could check it / handle the fallout on Monday?<span class="m_-6685972700929015639HOEnZb"><font color="#888888"><br><br>James</font></span><div class="m_-6685972700929015639HOEnZb"><div class="m_-6685972700929015639h5"><br><div class="gmail_quote"><div dir="ltr">On Wed, 7 Jun 2017 at 03:15, Galina Kistanova <<a href="mailto:gkistanova@gmail.com" target="_blank">gkistanova@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hello James.<br><br>Here is the bug:</div></div></div></div></div><div dir="ltr"><div><div><div><div><br><br>+  std::stable_sort(<br>
+      Candidates.begin(), Candidates.end(),<br>
+      [](const SinkingInstructionCandidate &A,<br>
+         const SinkingInstructionCandidate &B) { return A >= B; });<br><br></div></div></div></div></div><div dir="ltr"><div><div><div><div></div>This comparison operator is invalid, because it does not implement strict weak ordering. With this logic, if 2 candidates A and B have the same cost, the comparison operator will return true, but must return false.<br><br></div>This fix would fix the <a href="http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win" target="_blank">http://lab.llvm.org:8011/build<wbr>ers/llvm-clang-x86_64-expensiv<wbr>e-checks-win</a>  bot and <a href="https://bugs.llvm.org/show_bug.cgi?id=33210" target="_blank">https://bugs.llvm.org/show_bug<wbr>.cgi?id=33210</a>.<br><br></div><div>Could you take care of this, please?<br></div><div><br></div>Thanks<br><br></div></div><div dir="ltr">Galina<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 2, 2017 at 12:18 PM, Galina Kistanova <span dir="ltr"><<a href="mailto:gkistanova@gmail.com" target="_blank">gkistanova@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The <a href="http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win" target="_blank">http://lab.llvm.org:8011/build<wbr>ers/llvm-clang-x86_64-expensiv<wbr>e-checks-win</a> bot builds the debug configuration now.<br><br><div><div><div><div>James, could you fix the GVNSink.cpp, line 749, please?<br></div><span><br>DEBUG(dbgs() << " -- Sinking candidates:\n"; for (auto &C<br></span>                              <wbr>                      : Candidates) dbgs()<br>                              <wbr>                 << "  " << C << "\n";);<br></div><div>It triggers a crash.<br><a href="http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/2891/steps/test-check-all/logs/stdio" target="_blank">http://lab.llvm.org:8011/build<wbr>ers/llvm-clang-x86_64-expensiv<wbr>e-checks-win/builds/2891/<wbr>steps/test-check-all/logs/<wbr>stdio</a><br><br></div></div>Thanks<span class="m_-6685972700929015639m_4896837607302240366m_-9028625266688623605HOEnZb"><font color="#888888"><br><br></font></span></div><span class="m_-6685972700929015639m_4896837607302240366m_-9028625266688623605HOEnZb"><font color="#888888">Galina<br><br></font></span></div><div class="m_-6685972700929015639m_4896837607302240366m_-9028625266688623605HOEnZb"><div class="m_-6685972700929015639m_4896837607302240366m_-9028625266688623605h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 30, 2017 at 12:14 PM, Davide Italiano <span dir="ltr"><<a href="mailto:davide@freebsd.org" target="_blank">davide@freebsd.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Tue, May 30, 2017 at 11:34 AM, Galina Kistanova <<a href="mailto:gkistanova@gmail.com" target="_blank">gkistanova@gmail.com</a>> wrote:<br>
> I'll see if I could find few spare CPU circles on one of the MSVC builder.<br>
><br>
> What targets we are after here? Just LLVM or LLVM+Clang?<br>
> If this is LLVM only, I might be able to reconfigure one of the existing<br>
> builders to build debug instead of the release.<br>
><br>
<br>
</span>I think the crash was triggered by LLVM, but having LLVM + clang would<br>
be better.<br>
<br>
--<br>
Davide<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>