<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 -newgvn -jump-threading -polly-mse" while running pass 'Polly - Maximal static expansion of SCoP'"
href="https://bugs.llvm.org/show_bug.cgi?id=34444">34444</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>polly crashes with "opt -newgvn -jump-threading -polly-mse" while running pass 'Polly - Maximal static expansion of SCoP'
</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>
7ede89db2c39be7ae220fdb4d1d5c9325a6c776a) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>
3cef9810b2ae6dd91c1cf211b47c8d838783196f)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/su/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.4.0
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/6.0.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.4
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.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.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.0.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.0
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 -newgvn -jump-threading -polly-mse -o small-opt.bc small.bc
optpolly:
/home/su/software/tmp/polly/llvm/tools/polly/lib/Transform/MaximalStaticExpansion.cpp:437:
polly::ScopArrayInfo*
{anonymous}::MaximalStaticExpander::expandAccess(polly::Scop&,
polly::MemoryAccess*): Assertion `isDimBoundedByConstant(CurrentStmtDomain, i)
&& "Domain boundary are not constant."' failed.
#0 0x00000000039741df (optpolly+0x39741df)
#1 0x0000000003974272 (optpolly+0x3974272)
#2 0x00000000039724b9 (optpolly+0x39724b9)
#3 0x0000000003973a54 (optpolly+0x3973a54)
#4 0x00007fbd281af390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#5 0x00007fbd26f21428 gsignal
/build/glibc-bfm8X4/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
#6 0x00007fbd26f2302a abort /build/glibc-bfm8X4/glibc-2.23/stdlib/abort.c:91:0
#7 0x00007fbd26f19bd7 __assert_fail_base
/build/glibc-bfm8X4/glibc-2.23/assert/assert.c:92:0
#8 0x00007fbd26f19c82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
#9 0x0000000003cca62d (optpolly+0x3cca62d)
#10 0x0000000003ccb05e (optpolly+0x3ccb05e)
#11 0x0000000003d7a4a5 (optpolly+0x3d7a4a5)
#12 0x0000000002acf70a (optpolly+0x2acf70a)
#13 0x00000000031f6b88 (optpolly+0x31f6b88)
#14 0x00000000031f6d21 (optpolly+0x31f6d21)
#15 0x00000000031f709c (optpolly+0x31f709c)
#16 0x00000000031f77b1 (optpolly+0x31f77b1)
#17 0x00000000031f79bd (optpolly+0x31f79bd)
#18 0x000000000172ca2e (optpolly+0x172ca2e)
#19 0x00007fbd26f0c830 __libc_start_main
/build/glibc-bfm8X4/glibc-2.23/csu/../csu/libc-start.c:325:0
#20 0x0000000001704069 (optpolly+0x1704069)
Stack dump:
0. Program arguments: optpolly -newgvn -jump-threading -polly-mse -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 - Maximal static expansion of SCoP' on basic block
'%for.cond'
Aborted (core dumped)
$
--------------------------------------
int printf (const char *, ...);
int a, b, c;
int main ()
{
for (; c < 16; c++)
{
b = c;
if (!c)
b = 1;
a = b;
}
printf ("%d\n", a);
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>