[llvm-bugs] [Bug 41109] New: opt crashes with "opt -correlated-propagation -sroa -memdep -licm"
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Mar 17 00:50:08 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41109
Bug ID: 41109
Summary: opt crashes with "opt -correlated-propagation -sroa
-memdep -licm"
Product: libraries
Version: 7.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: cszide at 163.com
CC: llvm-bugs at lists.llvm.org
Created attachment 21619
--> https://bugs.llvm.org/attachment.cgi?id=21619&action=edit
.bc file of the source code
$clang -v
clang version 7.0.1 (tags/RELEASE_701/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir:
/home/jack-zhou/clang+llvm-7.0.1-x86_64-linux-gnu-ubuntu-18.04/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.5.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.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.3.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$opt -version
LLVM (http://llvm.org/):
LLVM version 7.0.1
Optimized build.
Default target: x86_64-unknown-linux-gnu
Host CPU: skylake
$clang -O3 -c -emit-llvm -mllvm -disable-llvm-optzns small.c -o small.bc
$ opt -correlated-propagation -sroa -memdep -licm small.bc -o small-opt.bc
Stack dump:
0. Program arguments: opt -correlated-propagation -sroa -memdep -licm
small.bc -o small-opt.bc
1. Running pass 'Function Pass Manager' on module 'small.bc'.
2. Running pass 'Loop Pass Manager' on function '@d'
3. Running pass 'Loop Invariant Code Motion' on basic block '%1'
LLVMSymbolizer: error reading file: No such file or directory
#0 0x0000000001bf8154 (opt+0x1bf8154)
#1 0x0000000001bf617e (opt+0x1bf617e)
#2 0x0000000001bf8312 (opt+0x1bf8312)
#3 0x00007fea979a5890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#4 0x00000000016d2be2 (opt+0x16d2be2)
#5 0x00000000016c9e65 (opt+0x16c9e65)
#6 0x00000000016c8135 (opt+0x16c8135)
#7 0x00000000012a3a58 (opt+0x12a3a58)
#8 0x00000000012a56a1 (opt+0x12a56a1)
#9 0x000000000139e7b1 (opt+0x139e7b1)
#10 0x0000000001218f1c (opt+0x1218f1c)
#11 0x000000000121c552 (opt+0x121c552)
#12 0x000000000121969e (opt+0x121969e)
#13 0x0000000001218d48 (opt+0x1218d48)
#14 0x0000000001203f3f (opt+0x1203f3f)
#15 0x000000000120e321 (opt+0x120e321)
#16 0x000000000120ee18 (opt+0x120ee18)
#17 0x000000000120f1e0 (opt+0x120f1e0)
#18 0x000000000120f943 (opt+0x120f943)
#19 0x0000000001a52f7c (opt+0x1a52f7c)
#20 0x0000000001a58608 (opt+0x1a58608)
#21 0x00000000012def0f (opt+0x12def0f)
#22 0x0000000001757ff1 (opt+0x1757ff1)
#23 0x0000000001758223 (opt+0x1758223)
#24 0x000000000175876e (opt+0x175876e)
#25 0x00000000007afbf5 (opt+0x7afbf5)
#26 0x00007fea96432b97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#27 0x000000000079c5ba (opt+0x79c5ba)
Segmentation fault (core dumped)
small.c----------------------------------------
a, c;
volatile b;
d() {
int e[7][4];
f:
if (c) {
int *g;
for (; a;) {
*g || b;
g = e[1][3];
}
}
goto f;
}
--
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/20190317/82a4ba97/attachment.html>
More information about the llvm-bugs
mailing list