<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 - Assertion `!contains(New, this) && "this->replaceAllUsesWith(expr(this)) is NOT valid!"' failed. with -ipconstprop"
href="https://bugs.llvm.org/show_bug.cgi?id=37451">37451</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion `!contains(New, this) && "this->replaceAllUsesWith(expr(this)) is NOT valid!"' failed. with -ipconstprop
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>enhancement
</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>mikael.holmen@ericsson.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=20302" name="attach_20302" title="reproducer">attachment 20302</a> <a href="attachment.cgi?id=20302&action=edit" title="reproducer">[details]</a></span>
reproducer
Running:
opt -S -o - tr15999.ll -ipconstprop
gives
opt: ../lib/IR/Value.cpp:409: void llvm::Value::doRAUW(llvm::Value *, bool):
Assertion `!contains(New, this) && "this->replaceAllUsesWith(expr(this)) is NOT
valid!"' failed.
Stack dump:
0. Program arguments: opt -S -o - tr15999.ll -ipconstprop
1. Running pass 'Interprocedural constant propagation' on module
'tr15999.ll'.
LLVMSymbolizer: error reading file: No such file or directory
#0 0x0000000002174ae4 (opt+0x2174ae4)
#1 0x0000000002175256 (opt+0x2175256)
#2 0x00007f3f637d6330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x00007f3f623c5c37 gsignal
/build/eglibc-ripdx6/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00007f3f623c9028 abort
/build/eglibc-ripdx6/eglibc-2.19/stdlib/abort.c:91:0
#5 0x00007f3f623bebf6 __assert_fail_base
/build/eglibc-ripdx6/eglibc-2.19/assert/assert.c:92:0
#6 0x00007f3f623beca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#7 0x0000000001c50bfd (opt+0x1c50bfd)
#8 0x0000000001cd8f51 (opt+0x1cd8f51)
#9 0x0000000001c09df5 (opt+0x1c09df5)
#10 0x000000000076bf85 (opt+0x76bf85)
#11 0x00007f3f623b0f45 __libc_start_main
/build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:321:0
#12 0x00000000007558fd (opt+0x7558fd)</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>