<div dir="ltr">Reverted in r240343. I'm finishing for today. Sorry for the troubles, but it's quite a surprise for me. <div><br></div><div>How can I reproduce the problem locally?</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jun 22, 2015 at 11:38 PM Frédéric Riss <<a href="mailto:friss@apple.com" target="_blank">friss@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><blockquote type="cite"><div>On Jun 22, 2015, at 1:57 PM, Paweł Bylica <<a href="mailto:chfast@gmail.com" target="_blank">chfast@gmail.com</a>> wrote:</div><br><div><div dir="ltr">I'm about to send a change that will fix the regression test (it should be -march=x86). It should fix build failures like:<div><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lab.llvm.org-3A8011_builders_llvm-2Ds390x-2Dlinux1_builds_16458&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=NG-of94i-924-ypiM_96XLE06sNMIr6uPP28w0FvtN0&s=qPJjkf107wg2tpjQYAlf2LPn_PwgQ0m0DzaMo4qLmUc&e=" target="_blank">http://lab.llvm.org:8011/builders/llvm-s390x-linux1/builds/16458</a><br></div><div><br></div><div>However your is similar to that one:<br><div><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lab.llvm.org-3A8011_builders_clang-2Dx86-5F64-2Dlinux-2Dselfhost-2Dabi-2Dtest_builds_5852&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=NG-of94i-924-ypiM_96XLE06sNMIr6uPP28w0FvtN0&s=v-Z62TrkKB12tj1pE5MH_-ozr_CUUaE9HZNX81fRSzc&e=" target="_blank">http://lab.llvm.org:8011/builders/clang-x86_64-linux-selfhost-abi-test/builds/5852</a><br></div><div>but I'm not sure what's wrong with that.</div><div><br></div><div>Give me 10 more minutes. If it will not help, please revert it.</div></div></div></div></blockquote><div><br></div></div></div><div style="word-wrap:break-word"><div><div>I just saw your commit. I think there is no way that your fix in the test could fix any of the self host issues (the green dragon failure is a self-hosted LTO build and the other failing bot you pointed me at is also a self-host). Are you investigating the other failures? The 2 failing bots have only your commit in common in their blame lists so at this point it’s pretty clear that this commit triggers something very wrong in a clang self-host build. It  should be pretty easy to reproduce. I’d appreciate if you revert this change so that the bots can become green again. </div><div><br></div><div>Fred </div></div></div><div style="word-wrap:break-word"><div><br><blockquote type="cite"><div><div dir="ltr"><div><div>- Paweł</div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jun 22, 2015 at 10:47 PM Frédéric Riss <<a href="mailto:friss@apple.com" target="_blank">friss@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>This commit is by far the most likely culprit for the hangs we see on green dragon:</div><div><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lab.llvm.org-3A8080_green_job_clang-2Dstage2-2Dconfigure-2DRlto-5Fcheck_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=NG-of94i-924-ypiM_96XLE06sNMIr6uPP28w0FvtN0&s=5wMZTZVpzuQEZmzGAB6ymfErYlPgP67JyBahMMFxO1A&e=" target="_blank">http://lab.llvm.org:8080/green/job/clang-stage2-configure-Rlto_check/</a></div><div><br></div><div>Did you have any other failures? Would you mind reverting it to see if it fixes things? (This is after an LTO bootstrap, so it takes quite some time to reproduce/propagate).</div><div><br></div><div>Fred</div></div><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On Jun 22, 2015, at 8:58 AM, Pawel Bylica <<a href="mailto:chfast@gmail.com" target="_blank">chfast@gmail.com</a>> wrote:</div><br><div><div>Author: chfast<br>Date: Mon Jun 22 10:58:11 2015<br>New Revision: 240291<br><br>URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject-3Frev-3D240291-26view-3Drev&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=NG-of94i-924-ypiM_96XLE06sNMIr6uPP28w0FvtN0&s=2tQeBrjflQHqLRZRSX1HdTpMAuNx5KdzJ9ejac24JTs&e=" target="_blank">http://llvm.org/viewvc/llvm-project?rev=240291&view=rev</a><br>Log:<br>Fix shl folding in DAG combiner.<br><br>Summary: The code responsible for shl folding in the DAGCombiner was assuming incorrectly that all constants are less than 64 bits. This patch simply changes the way values are compared.<br><br>Test Plan: A regression test included.<br><br>Reviewers: andreadb<br><br>Reviewed By: andreadb<br><br>Subscribers: andreadb, test, llvm-commits<br><br>Differential Revision: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_D10602&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=NG-of94i-924-ypiM_96XLE06sNMIr6uPP28w0FvtN0&s=WjqT2gwq2Xuhp8UpzesBxRWdxAFaiuwZH64sG6j4r4w&e=" target="_blank">http://reviews.llvm.org/D10602</a><br><br>Added:<br>    llvm/trunk/test/CodeGen/X86/fold-vector-shl-crash.ll<br>Modified:<br>    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp<br><br>Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp<br>URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_llvm_trunk_lib_CodeGen_SelectionDAG_DAGCombiner.cpp-3Frev-3D240291-26r1-3D240290-26r2-3D240291-26view-3Ddiff&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=NG-of94i-924-ypiM_96XLE06sNMIr6uPP28w0FvtN0&s=uWIadP4A_424DfMS3S3cLNo4Eja-pZNuzwc537SGx5o&e=" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=240291&r1=240290&r2=240291&view=diff</a><br>==============================================================================<br>--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)<br>+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Mon Jun 22 10:58:11 2015<br>@@ -4275,7 +4275,7 @@ SDValue DAGCombiner::visitSHL(SDNode *N)<br>   if (isNullConstant(N0))<br>     return N0;<br>   // fold (shl x, c >= size(x)) -> undef<br>-  if (N1C && N1C->getZExtValue() >= OpSizeInBits)<br>+  if (N1C && N1C->getAPIntValue().uge(OpSizeInBits))<br>     return DAG.getUNDEF(VT);<br>   // fold (shl x, 0) -> x<br>   if (N1C && N1C->isNullValue())<br><br>Added: llvm/trunk/test/CodeGen/X86/fold-vector-shl-crash.ll<br>URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_llvm_trunk_test_CodeGen_X86_fold-2Dvector-2Dshl-2Dcrash.ll-3Frev-3D240291-26view-3Dauto&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=NG-of94i-924-ypiM_96XLE06sNMIr6uPP28w0FvtN0&s=jMQtwmJqHRgDgHndfHKa2ctmsuXxSm_4strxdhupqRw&e=" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fold-vector-shl-crash.ll?rev=240291&view=auto</a><br>==============================================================================<br>--- llvm/trunk/test/CodeGen/X86/fold-vector-shl-crash.ll (added)<br>+++ llvm/trunk/test/CodeGen/X86/fold-vector-shl-crash.ll Mon Jun 22 10:58:11 2015<br>@@ -0,0 +1,8 @@<br>+; RUN: llc < %s | FileCheck %s<br>+<br>+;CHECK-LABEL: test<br>+define <2 x i256> @test() {<br>+  %S = shufflevector <2 x i256> zeroinitializer, <2 x i256> <i256 -1, i256 -1>, <2 x i32> <i32 0, i32 2><br>+  %B = shl <2 x i256> %S, <i256 -1, i256 -1> ; DAG Combiner crashes here<br>+  ret <2 x i256> %B<br>+}<br><br><br>_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br></div></div></blockquote></div><br></div></blockquote></div>
</div></blockquote></div></div></blockquote></div></div>