[llvm-bugs] [Bug 30991] New: Assertion `!NodePtr->isKnownSentinel()' failed. in GVNHoist
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 11 16:19:15 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=30991
Bug ID: 30991
Summary: Assertion `!NodePtr->isKnownSentinel()' failed. in
GVNHoist
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: efriedma at codeaurora.org
CC: llvm-bugs at lists.llvm.org, sebpop at gmail.com
Classification: Unclassified
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
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161112/7b4368ac/attachment-0001.html>
More information about the llvm-bugs
mailing list