<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 `AnalysisPass && "Expected analysis pass to exist."' failed.' with -gvn-hoist -early-cse-memssa even on empty file"
href="https://bugs.llvm.org/show_bug.cgi?id=38906">38906</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>'Assertion `AnalysisPass && "Expected analysis pass to exist."' failed.' with -gvn-hoist -early-cse-memssa even on empty file
</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>opt -S -o - /dev/null -gvn-hoist -early-cse-memssa
crashes with
opt: ../lib/IR/LegacyPassManager.cpp:617: void
llvm::PMTopLevelManager::setLastUser(ArrayRef<llvm::Pass *>, llvm::Pass *):
Assertion `AnalysisPass && "Expected analysis pass to exist."' failed.
Stack dump:
0. Program arguments: build-all/bin/opt -S -o - /dev/null -gvn-hoist
-early-cse-memssa
#0 0x00000000020ec834 PrintStackTraceSignalHandler(void*)
(build-all/bin/opt+0x20ec834)
#1 0x00000000020ea990 llvm::sys::RunSignalHandlers()
(build-all/bin/opt+0x20ea990)
#2 0x00000000020ecb98 SignalHandler(int) (build-all/bin/opt+0x20ecb98)
#3 0x00007f7c26a2b330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x00007f7c2561ac37 gsignal
/build/eglibc-ripdx6/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007f7c2561e028 abort
/build/eglibc-ripdx6/eglibc-2.19/stdlib/abort.c:91:0
#6 0x00007f7c25613bf6 __assert_fail_base
/build/eglibc-ripdx6/eglibc-2.19/assert/assert.c:92:0
#7 0x00007f7c25613ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#8 0x0000000001b24292
llvm::PMTopLevelManager::setLastUser(llvm::ArrayRef<llvm::Pass*>, llvm::Pass*)
(build-all/bin/opt+0x1b24292)
#9 0x0000000001b28210 llvm::PMDataManager::add(llvm::Pass*, bool)
(build-all/bin/opt+0x1b28210)
#10 0x0000000001b25593 llvm::PMTopLevelManager::schedulePass(llvm::Pass*)
(build-all/bin/opt+0x1b25593)
#11 0x000000000075cde6 main (build-all/bin/opt+0x75cde6)
#12 0x00007f7c25605f45 __libc_start_main
/build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:321:0
#13 0x0000000000745e2d _start (build-all/bin/opt+0x745e2d)
Abort</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>