<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 -gvn -polly-opt-isl -polly-codegen -polly-scops -polly-codegen" while running pass 'Polly - Create LLVM-IR from SCoPs'"
href="https://bugs.llvm.org/show_bug.cgi?id=34441">34441</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>polly crashes with "opt -gvn -polly-opt-isl -polly-codegen -polly-scops -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>
fc6ac77722c6bdc2508229af6f8aebfebe02f0fa) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>
1ee1fb604621025bd2b1a681a09ab54ff69623d1)
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 -O3 -mllvm -disable-llvm-optzns -c -emit-llvm -o small.bc small.c
$ optpolly -gvn -polly-opt-isl -polly-codegen -polly-scops -polly-codegen -o
small-opt.bc small.bc
optpolly:
/home/su/software/tmp/polly/llvm/tools/polly/lib/CodeGen/IslExprBuilder.cpp:698:
llvm::Value* polly::IslExprBuilder::createId(isl_ast_expr*): Assertion
`IDToValue.count(Id) && "Identifier not found"' failed.
#0 0x00000000038af81a (optpolly+0x38af81a)
#1 0x00000000038af8ab (optpolly+0x38af8ab)
#2 0x00000000038adcc0 (optpolly+0x38adcc0)
#3 0x00000000038af19d (optpolly+0x38af19d)
#4 0x00007faf71c53330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#5 0x00007faf70a3bc37 gsignal
/build/eglibc-SvCtMH/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#6 0x00007faf70a3f028 abort
/build/eglibc-SvCtMH/eglibc-2.19/stdlib/abort.c:91:0
#7 0x00007faf70a34bf6 __assert_fail_base
/build/eglibc-SvCtMH/eglibc-2.19/assert/assert.c:92:0
#8 0x00007faf70a34ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#9 0x0000000003cd54d7 (optpolly+0x3cd54d7)
#10 0x0000000003cd57db (optpolly+0x3cd57db)
#11 0x0000000003cd3010 (optpolly+0x3cd3010)
#12 0x0000000003cd52b7 (optpolly+0x3cd52b7)
#13 0x0000000003cd57c6 (optpolly+0x3cd57c6)
#14 0x0000000003cdd5be (optpolly+0x3cdd5be)
#15 0x0000000003cde81d (optpolly+0x3cde81d)
#16 0x0000000003cdfb92 (optpolly+0x3cdfb92)
#17 0x0000000003cdfaba (optpolly+0x3cdfaba)
#18 0x0000000003cdfbf2 (optpolly+0x3cdfbf2)
#19 0x0000000003c84a05 (optpolly+0x3c84a05)
#20 0x0000000003c84d8e (optpolly+0x3c84d8e)
#21 0x0000000003c7b2a5 (optpolly+0x3c7b2a5)
#22 0x0000000002ac5137 (optpolly+0x2ac5137)
#23 0x0000000003193bcc (optpolly+0x3193bcc)
#24 0x0000000003193d5f (optpolly+0x3193d5f)
#25 0x00000000031940fa (optpolly+0x31940fa)
#26 0x0000000003194851 (optpolly+0x3194851)
#27 0x0000000003194a91 (optpolly+0x3194a91)
#28 0x00000000017fe118 (optpolly+0x17fe118)
#29 0x00007faf70a26f45 __libc_start_main
/build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:321:0
#30 0x00000000017d7a29 (optpolly+0x17d7a29)
Stack dump:
0. Program arguments: optpolly -gvn -polly-opt-isl -polly-codegen
-polly-scops -polly-codegen -o small-opt.bc small.bc
1. Running pass 'Function 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
'%while.cond'
Aborted (core dumped)
$
-------------------------------
int a, b, c;
int main ()
{
while (a++)
while (b)
{
c = 0;
break;
}
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>