<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [WinEH] loop optimizations still asserting with captured variables"
href="https://llvm.org/bugs/show_bug.cgi?id=26019">26019</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[WinEH] loop optimizations still asserting with captured variables
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows XP
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>r.sagitario@gmx.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The attached test case (same as in #26000) now causes a different assertion
during optimizations:
<span class="quote">> opt -O2 tt1-red.ll</span >
Assertion failed: idx < size(), file
C:\s\d\ldc\llvm\include\llvm/ADT/SmallVector.h, line 145
bugpoint reduces this to:
//////////////////////////////
; ModuleID = 'bugpoint-reduced-simplified.bc'
target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
target triple = "i386-pc-windows-msvc"
%nest.checkContent.0.1.2.3.4.17 = type { { i32, i8* }, { i32, i8* } }
@.str.1 = external unnamed_addr constant [2 x i8]
@.str.2 = external unnamed_addr constant [2 x i8]
; Function Attrs: readonly
declare void @_adEq2() #0
define x86_stdcallcc void @"\01__D3tt112checkContentFAyaZv"() personality i32
(i8*, i8*, i8*, i8*)* @__CxxFrameHandler3 {
%.frame = alloca %nest.checkContent.0.1.2.3.4.17, align 4
%1 = getelementptr %nest.checkContent.0.1.2.3.4.17,
%nest.checkContent.0.1.2.3.4.17* %.frame, i32 0, i32 1, i32 0
%2 = getelementptr %nest.checkContent.0.1.2.3.4.17,
%nest.checkContent.0.1.2.3.4.17* %.frame, i32 0, i32 1, i32 1
%3 = bitcast i8** %2 to i32*
br i1 undef, label %try.success.or.caught, label %forbody
catch.object.Throwable: ; preds = %catch.dispatch
%4 = catchpad within %5 [i8* null, i32 64, i8* null]
unreachable
try.success.or.caught: ; preds = %forcond.backedge,
%0
ret void
postinvoke: ; preds = %forbody
br i1 undef, label %else, label %forcond.backedge
forcond.backedge: ; preds = %else, %postinvoke
br i1 undef, label %try.success.or.caught, label %forbody
catch.dispatch: ; preds = %forbody, %else
%5 = catchswitch within none [label %catch.object.Throwable] unwind to caller
forbody: ; preds = %forcond.backedge,
%0
store i32 undef, i32* %1, align 4
store i32 undef, i32* %3, align 4
invoke void @_adEq2() #0
to label %postinvoke unwind label %catch.dispatch
else: ; preds = %postinvoke
invoke void @_adEq2() #0
to label %forcond.backedge unwind label %catch.dispatch
}
declare i32 @__CxxFrameHandler3(i8*, i8*, i8*, i8*)
attributes #0 = { readonly }
////////////////////////////
and blames the LICM pass again.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>