<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 --- - opt fails with -instcombine optimization, Linux, trunk, regresssion from version 3.4"
href="http://llvm.org/bugs/show_bug.cgi?id=20114">20114</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>opt fails with -instcombine optimization, Linux, trunk, regresssion from version 3.4
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>opt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ili.filippov@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>We can make small reproducer:
; Function Attrs: nounwind readnone
define <4 x float> @foo(<4 x float> %a) {
allocas:
%mul__a_load = fmul <4 x float> %a, <float 2.000000e+00, float 2.000000e+00,
float 2.000000e+00, float 2.000000e+00>
ret <4 x float> %mul__a_load
}
; Function Attrs: nounwind
define void @function_(<4 x i32> %__mask, <4 x i32>* %A) {
allocas:
%mask01.i = shufflevector <4 x i32> %__mask, <4 x i32> undef, <4 x i32> <i32
0, i32 0, i32 1, i32 1>
%masked_new.i.i.i = and <4 x i32> bitcast (<2 x i64> <i64 ptrtoint (<4 x
float> (<4 x float>)* @foo to i64), i64 ptrtoint (<4 x float> (<4 x float>)*
@foo to i64)> to <4 x i32>), %mask01.i
store <4 x i32> %masked_new.i.i.i, <4 x i32>* %A
ret void
}
and command "opt reproducer.ll -instcombine > l.bc" (opt from trunk)
will have an error:
opt: include/llvm/Support/Casting.h:95: static bool
llvm::isa_impl_cl<llvm::UndefValue, const llvm::Constant *>::doit(const From *)
[To = llvm::UndefValue, From = const llvm::Constant *]: Assertion `Val &&
"isa<> used on a null pointer"' failed.
In version 3.4 everything is ok.</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>