<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 - Partial inlining of variadic functions causes verification failure due to mismatched attributes."
href="https://bugs.llvm.org/show_bug.cgi?id=36210">36210</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Partial inlining of variadic functions causes verification failure due to mismatched attributes.
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>Interprocedural Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sfertile@ca.ibm.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19798" name="attach_19798" title="Ir input for partial-inliner to show the issue.">attachment 19798</a> <a href="attachment.cgi?id=19798&action=edit" title="Ir input for partial-inliner to show the issue.">[details]</a></span>
Ir input for partial-inliner to show the issue.
I've attached a cutdown example from the test suite which shows the issue.
~/install/llvm_trunk/bin/opt -mtriple x86_64-unknown-linux-gnu \
-partial-inliner cutdown.ll -o /dev/null
Wrong types for attribute: signext zeroext
The issue seems to be that we sign extend a pointer to int that gets added to
the outlined function as an output argument. In this case the call instruction
is:
call void (%struct.obj*, i32*, ...) @assemble_options.1_cond.end(%struct.obj*
%loptions, i32* signext %result.0.lcssa.loc.i, i8* getelementptr inbounds ([11
x i8], [11 x i8]* @.str.23, i64 0, i64 0), i32 signext 8, i8* getelementptr
inbounds ([8 x i8], [8 x i8]* @.str.24, i64 0, i64 0), i32 signext 16777216,
i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.25, i64 0, i64 0), i32
signext 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.26, i64 0,
i64 0), i32 2, i8* null)
If I print-out the ir after partial inlining and remove the sign extension from
`i32* signext %result.0.lcssa.loc.i` the verifier no longer complains.</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>