<html>
<head>
<base href="https://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 --- - Assert in early-cse: (New->getType() == getType() && "replaceAllUses of value with new value of different type!")"
href="https://llvm.org/bugs/show_bug.cgi?id=25012">25012</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assert in early-cse: (New->getType() == getType() && "replaceAllUses of value with new value of different type!")
</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>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>Scalar Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>james.molloy@arm.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Random testing found the following testcase failing when run with `opt
-early-cse -disable-output`:
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
target triple = "aarch64--linux-gnu"
; Function Attrs: nounwind readonly argmemonly
declare { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> }
@llvm.aarch64.neon.ld4.v4i16.p0v4i16(<4 x i16>*)
; Function Attrs: nounwind
define void @dotests_356() {
entry:
store <4 x i16> undef, <4 x i16>* undef, align 8
%vld4454 = call { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> }
@llvm.aarch64.neon.ld4.v4i16.p0v4i16(<4 x i16>* undef)
%vld4454.fca.0.extract = extractvalue { <4 x i16>, <4 x i16>, <4 x i16>, <4 x
i16> } %vld4454, 0
unreachable
}
Debug output is amusing:
EarlyCSE CSE LOAD: %vld4454 = call { <4 x i16>, <4 x i16>, <4 x i16>, <4 x
i16> } @llvm.aarch64.neon.ld4.v4i16.p0v4i16(<4 x i16>* undef) to: store <4 x
i16> undef, <4 x i16>* undef, align 8
A load of {<4 x i16>...} to a store of <4 x i16>!
This doesn't look like a recent regression - it looks latent.</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>