<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 - polly crashes with "opt -mem2reg -inline -polly-simplify -polly-opt-isl -polly-codegen" while running pass 'Polly - Create LLVM-IR from SCoPs'"
href="https://bugs.llvm.org/show_bug.cgi?id=34481">34481</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>polly crashes with "opt -mem2reg -inline -polly-simplify -polly-opt-isl -polly-codegen" while running pass 'Polly - Create LLVM-IR from SCoPs'
</td>
</tr>
<tr>
<th>Product</th>
<td>Polly
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>Optimizer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>polly-dev@googlegroups.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>su@cs.ucdavis.edu
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ clangpolly -v
clang version 6.0.0 (<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a>
5a2b037a53684751a712b11898a0cc69815f2ba7) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>
76db91a4f033defd405dfb4d14ba6c0c7e205ce0)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/su/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.2.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$
$ clangpolly -w -O3 -mllvm -disable-llvm-optzns -c -emit-llvm -o small.bc
small.c
$ optpolly -mem2reg -inline -polly-simplify -polly-opt-isl -polly-codegen -o
small-opt.bc small.bc
optpolly:
/home/su/software/tmp/polly/llvm/tools/polly/include/polly/ScopInfo.h:1494:
polly::MemoryAccess& polly::ScopStmt::getArrayAccessFor(const
llvm::Instruction*) const: Assertion `ArrayAccess && "No array access found for
instruction!"' failed.
#0 0x00000000038ad6f4 (optpolly+0x38ad6f4)
#1 0x00000000038ad785 (optpolly+0x38ad785)
#2 0x00000000038abb9a (optpolly+0x38abb9a)
#3 0x00000000038ad077 (optpolly+0x38ad077)
#4 0x00007f4a46e01330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#5 0x00007f4a45be9c37 gsignal
/build/eglibc-SvCtMH/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#6 0x00007f4a45bed028 abort
/build/eglibc-SvCtMH/eglibc-2.19/stdlib/abort.c:91:0
#7 0x00007f4a45be2bf6 __assert_fail_base
/build/eglibc-SvCtMH/eglibc-2.19/assert/assert.c:92:0
#8 0x00007f4a45be2ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#9 0x0000000003c72e61 (optpolly+0x3c72e61)
#10 0x0000000003cbf2c1 (optpolly+0x3cbf2c1)
#11 0x0000000003cbf6cb (optpolly+0x3cbf6cb)
#12 0x0000000003cbfbd8 (optpolly+0x3cbfbd8)
#13 0x0000000003cc01ff (optpolly+0x3cc01ff)
#14 0x0000000003cc5e0a (optpolly+0x3cc5e0a)
#15 0x0000000003cde726 (optpolly+0x3cde726)
#16 0x0000000003cde8c0 (optpolly+0x3cde8c0)
#17 0x0000000003cdc58a (optpolly+0x3cdc58a)
#18 0x0000000003cdd50b (optpolly+0x3cdd50b)
#19 0x0000000003cde880 (optpolly+0x3cde880)
#20 0x0000000003cde7a8 (optpolly+0x3cde7a8)
#21 0x0000000003cde8e0 (optpolly+0x3cde8e0)
#22 0x0000000003c836bf (optpolly+0x3c836bf)
#23 0x0000000003c83a48 (optpolly+0x3c83a48)
#24 0x0000000003c79237 (optpolly+0x3c79237)
#25 0x0000000002ac574b (optpolly+0x2ac574b)
#26 0x0000000003190d6a (optpolly+0x3190d6a)
#27 0x0000000002937325 (optpolly+0x2937325)
#28 0x000000000293835b (optpolly+0x293835b)
#29 0x000000000293869c (optpolly+0x293869c)
#30 0x0000000003191298 (optpolly+0x3191298)
#31 0x00000000031919ef (optpolly+0x31919ef)
#32 0x0000000003191c2f (optpolly+0x3191c2f)
#33 0x00000000017fcbe8 (optpolly+0x17fcbe8)
#34 0x00007f4a45bd4f45 __libc_start_main
/build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:321:0
#35 0x00000000017d64f9 (optpolly+0x17d64f9)
Stack dump:
0. Program arguments: optpolly -mem2reg -inline -polly-simplify
-polly-opt-isl -polly-codegen -o small-opt.bc small.bc
1. Running pass 'CallGraph Pass Manager' on module 'small.bc'.
2. Running pass 'Region Pass Manager' on function '@main'
3. Running pass 'Polly - Create LLVM-IR from SCoPs' on basic block
'%for.cond'
Aborted (core dumped)
$
--------------------------------
int a, b, c, d;
int main ()
{
int e = 0;
for (; e < 56; e++)
{
int f = 0;
for (; f < 1; f++)
d = 1;
b;
if (a)
c = 2;
}
return 0;
}</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>