<html>
<head>
<base href="http://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 --- - Odd optimization results, resume undef, br i1 undef"
href="http://llvm.org/bugs/show_bug.cgi?id=15518">15518</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Odd optimization results, resume undef, br i1 undef
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>3.2
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</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>bruce.mitchener@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>If you run opt -O3 on the attached .bc file, you end up with some odd results
in the main() function, notably stuff like:
_ZNSt3__14listIi15stack_allocatorIiLj4EEED1Ev.exit75: ; preds =
%while.cond.backedge.i.i.i.i73, %if.then.i.i.i.i63, %cond.end44
ret i32 0
lpad33: ; preds = %cond.false42
%15 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)*
@__gxx_personality_v0 to i8*)
cleanup
br i1 undef, label %eh.resume, label %if.then.i.i.i.i35
if.then.i.i.i.i35: ; preds = %lpad33
br i1 undef, label %eh.resume, label %while.body.lr.ph.i.i.i.i
while.body.lr.ph.i.i.i.i: ; preds = %if.then.i.i.i.i35
br label %while.body.i.i.i.i37
while.body.i.i.i.i37: ; preds =
%while.cond.backedge.i.i.i.i, %while.body.lr.ph.i.i.i.i
br i1 undef, label %if.then.i.i.i.i.i, label %while.cond.backedge.i.i.i.i
while.cond.backedge.i.i.i.i: ; preds = %if.then.i.i.i.i.i,
%while.body.i.i.i.i37
br i1 undef, label %eh.resume, label %while.body.i.i.i.i37
if.then.i.i.i.i.i: ; preds =
%while.body.i.i.i.i37
br label %while.cond.backedge.i.i.i.i
eh.resume: ; preds =
%while.cond.backedge.i.i.i.i, %if.then.i.i.i.i35, %lpad33
resume { i8*, i32 } undef
It seems like an additional simplification of CFG should have happened perhaps?
I get this with the 3.2 release in conjunction with emscripten (ToT) + changes
to use a current libcxx.
Any ideas who is doing something wrong here? (Me, emscripten, LLVM?)</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>