<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 --- - ConstantFoldInstruction returns type with incorrect addrspace"
href="http://llvm.org/bugs/show_bug.cgi?id=15262">15262</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ConstantFoldInstruction returns type with incorrect addrspace
</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>Windows NT
</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>Global Analyses
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sschiffli@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>Created <span class=""><a href="attachment.cgi?id=10014" name="attach_10014" title="Failing .ll file">attachment 10014</a> <a href="attachment.cgi?id=10014&action=edit" title="Failing .ll file">[details]</a></span>
Failing .ll file
I'm seeing an assert from the InstructionCombining pass. It attempts to fold
the following:
IC: ConstFold to:
i8 addrspace(12)* getelementptr inbounds ([4 x i8] addrspace(12)* @buf,i32 0,
i32 2)
from:
%ptr = getelementptr inbounds i8* bitcast ([4 x i8] addrspace(12)* @buf to
i8*), i32 2
As you can see it changes the types and thus the RAUW fails. To reproduce run
"opt -instcombine min.ll"</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>