<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 --- - Assertion `!NodePtr->isKnownSentinel()' failed. in GVNHoist"
href="https://llvm.org/bugs/show_bug.cgi?id=30991">30991</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion `!NodePtr->isKnownSentinel()' failed. in GVNHoist
</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>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>Scalar Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>efriedma@codeaurora.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, sebpop@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Testcase:
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64--linux-android"
declare void @strchr() #0
define void @varsub(i8* %sp, i8* %word) {
entry:
br i1 undef, label %a, label %b
a:
%i0 = load i8, i8* %word, align 1
%incdec.ptr = getelementptr i8, i8* %sp, i32 1
call void @strchr() #0
unreachable
b:
br i1 undef, label %c, label %x
c:
%i1 = load i8, i8* %word, align 1
%incdec.ptr115 = getelementptr i8, i8* %sp, i32 1
call void @strchr() #0
unreachable
x:
%_p_scalar_ = load i8, i8* %word, align 1
unreachable
}
attributes #0 = { nounwind readonly }
Stack dump:
opt: [src]/llvm/include/llvm/ADT/ilist_iterator.h:126: reference
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, true,
false, void>, false, false>::operator*() const [OptionsT =
llvm::ilist_detail::node_options<llvm::Instruction, true, false, void>,
IsReverse = false, IsConst = false]: Assertion `!NodePtr->isKnownSentinel()'
failed.
#0 0x000000000136f3a8 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
([bin]/opt+0x136f3a8)
#1 0x000000000136fb16 SignalHandler(int) ([bin]/opt+0x136fb16)
#2 0x00007f21325b9330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x00007f2130fb0c37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00007f2130fb4028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#5 0x00007f2130fa9bf6 __assert_fail_base
/build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
#6 0x00007f2130fa9ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#7 0x0000000000a0974a
llvm::MemoryDependenceResults::getCallSiteDependencyFrom(llvm::CallSite, bool,
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, true,
false, void>, false, false>, llvm::BasicBlock*) ([bin]/opt+0xa0974a)
#8 0x0000000000a0aee9
llvm::MemoryDependenceResults::getDependency(llvm::Instruction*)
([bin]/opt+0xa0aee9)
#9 0x00000000011903a3 llvm::GVN::ValueTable::lookupOrAddCall(llvm::CallInst*)
([bin]/opt+0x11903a3)
#10 0x000000000118fa39 llvm::GVN::ValueTable::lookupOrAdd(llvm::Value*)
([bin]/opt+0x118fa39)
#11 0x00000000011a33b7 (anonymous namespace)::GVNHoist::run(llvm::Function&)
([bin]/opt+0x11a33b7)
#12 0x00000000011a964f (anonymous
namespace)::GVNHoistLegacyPass::runOnFunction(llvm::Function&)
([bin]/opt+0x11a964f)
#13 0x0000000000e93d44 llvm::FPPassManager::runOnFunction(llvm::Function&)
([bin]/opt+0xe93d44)
#14 0x0000000000e93f93 llvm::FPPassManager::runOnModule(llvm::Module&)
([bin]/opt+0xe93f93)
#15 0x0000000000e944d3 llvm::legacy::PassManagerImpl::run(llvm::Module&)
([bin]/opt+0xe944d3)
#16 0x000000000068ed41 main ([bin]/opt+0x68ed41)
#17 0x00007f2130f9bf45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#18 0x0000000000683189 _start ([bin]/opt+0x683189)
Stack dump:
0. Program arguments: [bin]/opt -gvn-hoist eval-reduced.ll
1. Running pass 'Function Pass Manager' on module 'eval-reduced.ll'.
2. Running pass 'Early GVN Hoisting of Expressions' on function '@varsub'
Aborted</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>