<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 --- - Remove throw when we can see the catch"
href="http://llvm.org/bugs/show_bug.cgi?id=17467">17467</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Remove throw when we can see the catch
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>Common Code Generator Code
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>marc.glisse@normalesup.org
</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>(sorry for the wrong "component" field, I don't know LLVM internals and can't
guess where this should go)
Hello,
this C++ code could be optimized to nothing:
void f(){
try {
throw 42;
} catch(...){}
}
More generally, exception handling is quite slow, so whenever we can see (after
suitable inlining) the catch that would receive a given throw, it would be good
to replace it with a goto (not forgetting any destructor that needs to run,
etc). The heavy runtime machinery is useful when the catch happens in another
function, not so much when everything is local.</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>