[llvm-bugs] [Bug 34458] New: polly crashes with "opt -mem2reg -polly-mse" while running pass 'Polly - Maximal static expansion of SCoP'
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Sep 4 08:30:08 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34458
Bug ID: 34458
Summary: polly crashes with "opt -mem2reg -polly-mse" while
running pass 'Polly - Maximal static expansion of
SCoP'
Product: Polly
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Optimizer
Assignee: polly-dev at googlegroups.com
Reporter: su at cs.ucdavis.edu
CC: llvm-bugs at lists.llvm.org
$ clangpolly -v
clang version 6.0.0 (http://llvm.org/git/clang.git
9b9a71803226ccc3c9310312967117875b9ff77e) (http://llvm.org/git/llvm.git
2677f9404b42bfb87e26402dc878fe08378c1129)
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 -mem2reg -polly-mse -o small-opt.bc small.bc
#0 0x00000000039745c5 (optpolly+0x39745c5)
#1 0x0000000003974658 (optpolly+0x3974658)
#2 0x000000000397289f (optpolly+0x397289f)
#3 0x0000000003973e3a (optpolly+0x3973e3a)
#4 0x00007f678c5fa390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#5 0x0000000003c979c4 (optpolly+0x3c979c4)
#6 0x0000000003c9a8a0 (optpolly+0x3c9a8a0)
#7 0x0000000003c9a8d1 (optpolly+0x3c9a8d1)
#8 0x0000000003cc4706 (optpolly+0x3cc4706)
#9 0x0000000003cca87b (optpolly+0x3cca87b)
#10 0x0000000003ccb560 (optpolly+0x3ccb560)
#11 0x0000000003d7a943 (optpolly+0x3d7a943)
#12 0x0000000002acfaf0 (optpolly+0x2acfaf0)
#13 0x00000000031f6f6e (optpolly+0x31f6f6e)
#14 0x00000000031f7107 (optpolly+0x31f7107)
#15 0x00000000031f7482 (optpolly+0x31f7482)
#16 0x00000000031f7b97 (optpolly+0x31f7b97)
#17 0x00000000031f7da3 (optpolly+0x31f7da3)
#18 0x000000000172ca2e (optpolly+0x172ca2e)
#19 0x00007f678b357830 __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 -mem2reg -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 '@foo'
3. Running pass 'Polly - Maximal static expansion of SCoP' on basic block
'%while.cond'
Segmentation fault (core dumped)
$
--------------------------------
int a, b;
void foo ()
{
for (; a; a++)
{
int c;
while (c)
;
for (; c < 1; c++)
b = 1;
}
}
int main ()
{
foo ();
return 0;
}
--
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/20170904/0440f031/attachment.html>
More information about the llvm-bugs
mailing list