[llvm-dev] llvm interpreter error with polybench
Rasha Omar via llvm-dev
llvm-dev at lists.llvm.org
Sat Jun 9 02:22:28 PDT 2018
I am using polybench linear-algebra kernels for analysis, using these
commands:
$ clang-3.8 -I utilities -I linear-algebra/kernels/3mm
utilities/polybench.c linear-algebra/kernels/3mm/3mm.c -S -emit-llvm
$ llvm-link 3mm.ll polybench.ll -o 3mmN.ll
$ llvm-dis 3mmN
When I ran the file using interpreter
$ lli --debug -force-interpreter -stats 3mmN.ll
The interpreter stopped interpreting after the main function return without
interpreting the other functions. It aborts with this error:
lli: /home/rasha/llvm/llvm/include/llvm/ADT/ilist_iterator.h:139:
llvm::ilist_iterator<OptionsT, IsReverse, IsConst>::reference
llvm::ilist_iterator<OptionsT, IsReverse, IsConst>::operator*() const
[with OptionsT = llvm::ilist_detail::node_options<llvm::Instruction,
true, false, void>; bool IsReverse = false; bool IsConst = false;
llvm::ilist_iterator<OptionsT, IsReverse, IsConst>::reference =
llvm::Instruction&]: Assertion `!NodePtr->isKnownSentinel()' failed.
#0 0x0000000001a5e0a9 (lli+0x1a5e0a9)
#1 0x0000000001a5e13a (lli+0x1a5e13a)
#2 0x0000000001a5c5d2 (lli+0x1a5c5d2)
#3 0x0000000001a5da40 (lli+0x1a5da40)
#4 0x00007fefe0a91330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#5 0x00007fefdfa91c37 gsignal
/build/eglibc-ripdx6/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#6 0x00007fefdfa95028 abort /build/eglibc-ripdx6/eglibc-2.19/stdlib/abort.c:91:0
#7 0x00007fefdfa8abf6 __assert_fail_base
/build/eglibc-ripdx6/eglibc-2.19/assert/assert.c:92:0
#8 0x00007fefdfa8aca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#9 0x000000000106ca6a (lli+0x106ca6a)
#10 0x00000000015ca46f (lli+0x15ca46f)
#11 0x0000000001606fcf (lli+0x1606fcf)
#12 0x00000000015cda08 (lli+0x15cda08)
#13 0x0000000000f415cb (lli+0xf415cb)
#14 0x00007fefdfa7cf45 __libc_start_main
/build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:321:0
#15 0x0000000000f3f269 (lli+0xf3f269)
Stack dump:
Is there another method to use polybench kernels with llvm interpreter?
<https://stackoverflow.com/questions/tagged/llvm>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180609/2f5ed208/attachment.html>
More information about the llvm-dev
mailing list