<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - Incorrect inling cost calculation with new pass manager"
href="https://bugs.llvm.org/show_bug.cgi?id=42124">42124</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Incorrect inling cost calculation with new pass manager
</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>All
</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>yikong@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=22072" name="attach_22072" title="Reduced reproducer">attachment 22072</a> <a href="attachment.cgi?id=22072&action=edit" title="Reduced reproducer">[details]</a></span>
Reduced reproducer
aec_port_reset_output_index is a small static method and is only called once.
There should be performance gain by inlining the method:
$ clang -c -w -O2 -Rpass=inline aec_port_reduced.c
aec_port_reduced.c:46:11: remark: aec_port_reset_output_index inlined into d
with (cost=-14955, threshold=225) [-Rpass=inline]
aec_port_reset_output_index();
^
However with the new pass manager:
$ clang -c -w -fexperimental-new-pass-manager -O2 -Rpass-missed=inline
aec_port_reduced.c
aec_port_reduced.c:46:11: remark: aec_port_reset_output_index not inlined into
d because too costly to inline (cost=45, threshold=45) [-Rpass-missed=inline]
aec_port_reset_output_index();
^</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>