<p dir="ltr">See bills commit and chris's revert.  Please fix.</p>
<p dir="ltr">Sent from phone</p>
<div class="gmail_quote">On Apr 29, 2013 8:41 AM, "Keith Walker" <<a href="mailto:keith.walker@arm.com">keith.walker@arm.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I fell over this issue yesterday myself with lots of asserts being thrown.<br>
<br>
I think the issue is in lib/IR/AsmWriter.cpp:1618 in the function<br>
AssemblyWriter::printFunction(const Function *F)<br>
<br>
Looking at the code I think the 2nd for loop should be preceded by the test<br>
...<br>
<br>
   if (Idx < AS.getNumSlots())<br>
<br>
Not sure why it doesn't fail on other platforms as it looks like it should<br>
be a genuine issue on all platform.<br>
<br>
That change significantly reduced the failures on my Windows build.<br>
<br>
Keith<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:llvmdev-bounces@cs.uiuc.edu">llvmdev-bounces@cs.uiuc.edu</a> [mailto:<a href="mailto:llvmdev-bounces@cs.uiuc.edu">llvmdev-bounces@cs.uiuc.edu</a>] On<br>
Behalf Of Reid Kleckner<br>
Sent: 29 April 2013 15:57<br>
To: Demikhovsky, Elena<br>
Cc: <a href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a><br>
Subject: Re: [LLVMdev] Many tests fail on Win64<br>
<br>
In a debug build you should get a stack trace by default, which would<br>
be helpful here.<br>
<br>
I can try to repro later today, but I'm not surprised there are issues<br>
because most people I know stick with 32-bit builds even on 64-bit<br>
Windows.<br>
<br>
On Mon, Apr 29, 2013 at 4:27 AM, Demikhovsky, Elena<br>
<<a href="mailto:elena.demikhovsky@intel.com">elena.demikhovsky@intel.com</a>> wrote:<br>
> Hi,<br>
><br>
><br>
><br>
> I check-out the latest version of LLVM and see many failures (on Win64):<br>
><br>
> ********************<br>
><br>
> 67>  FAIL: LLVM :: Transforms/GlobalOpt/zeroinitializer-gep-load.ll (5518<br>
of<br>
> 7763)<br>
><br>
> 67>  ******************** TEST 'LLVM ::<br>
> Transforms/GlobalOpt/zeroinitializer-gep-load.ll' FAILED<br>
> ********************<br>
><br>
> 67>  Script:<br>
><br>
> 67>  --<br>
><br>
> 67>  W:/LLVM_org/build64/bin/Debug/opt.EXE <<br>
> W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-load.ll -S<br>
> -globalopt | W:/LLVM_org/build64/bin/Debug/FileCheck.EXE<br>
> W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-load.ll<br>
><br>
> 67>  --<br>
><br>
> 67>  Exit Code: 2<br>
><br>
> 67>  Command Output (stdout):<br>
><br>
> 67>  --<br>
><br>
> 67>  Command 0: "W:/LLVM_org/build64/bin/Debug/opt.EXE" "-S" "-globalopt"<br>
><br>
> 67>  Command 0 Result: 3<br>
><br>
> 67>  Command 0 Output:<br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67>  Command 0 Stderr:<br>
><br>
> 67>  Assertion failed: begin() + idx < end(), file<br>
> W:\LLVM_org\llvm\include\llvm/ADT/SmallVector.h, line 140<br>
><br>
> 67><br>
><br>
> 67>CUSTOMBUILD : CRT error : R6010<br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67>  - abort() has been called<br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67>  Command 1: "W:/LLVM_org/build64/bin/Debug/FileCheck.EXE"<br>
> "W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-load.ll"<br>
><br>
> 67>  Command 1 Result: 2<br>
><br>
> 67>  Command 1 Output:<br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67>  Command 1 Stderr:<br>
><br>
> 67>CUSTOMBUILD : FileCheck error : '-' is empty.<br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67>  --<br>
><br>
> 67><br>
><br>
> 67>  ********************<br>
><br>
> 67>  FAIL: LLVM :: Transforms/IPConstantProp/2008-06-09-WeakProp.ll (5519<br>
of<br>
> 7763)<br>
><br>
> 67>  ******************** TEST 'LLVM ::<br>
> Transforms/IPConstantProp/2008-06-09-WeakProp.ll' FAILED<br>
> ********************<br>
><br>
> 67>  Script:<br>
><br>
> 67>  --<br>
><br>
> 67>  W:/LLVM_org/build64/bin/Debug/opt.EXE <<br>
> W:\LLVM_org\llvm\test\Transforms\IPConstantProp\2008-06-09-WeakProp.ll<br>
> -ipconstprop -S | grep "ret i32 %r"<br>
><br>
> 67>  --<br>
><br>
> 67>  Exit Code: 1<br>
><br>
> 67>  Command Output (stdout):<br>
><br>
> 67>  --<br>
><br>
> 67>  Command 0: "W:/LLVM_org/build64/bin/Debug/opt.EXE" "-ipconstprop"<br>
"-S"<br>
><br>
> 67>  Command 0 Result: 3<br>
><br>
> 67>  Command 0 Output:<br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67>  Command 0 Stderr:<br>
><br>
> 67>  Assertion failed: begin() + idx < end(), file<br>
> W:\LLVM_org\llvm\include\llvm/ADT/SmallVector.h, line 140<br>
><br>
> 67><br>
><br>
> 67>CUSTOMBUILD : CRT error : R6010<br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67>  - abort() has been called<br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67>  Command 1: "grep" "ret i32 %r"<br>
><br>
> 67>  Command 1 Result: 1<br>
><br>
> 67>  Command 1 Output:<br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67>  Command 1 Stderr:<br>
><br>
> 67><br>
><br>
> 67><br>
><br>
> 67>  --<br>
><br>
> 67><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> -           Elena<br>
><br>
><br>
><br>
> ---------------------------------------------------------------------<br>
> Intel Israel (74) Limited<br>
><br>
> This e-mail and any attachments may contain confidential material for<br>
> the sole use of the intended recipient(s). Any review or distribution<br>
> by others is strictly prohibited. If you are not the intended<br>
> recipient, please contact the sender and delete all copies.<br>
><br>
><br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
><br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br>
<br>
<br>
</blockquote></div>