[llvm-bugs] [Bug 31189] New: opt crashes with "opt -instcombine -functionattrs -licm -licm": UNREACHABLE executed at /tmp/llvm-builder/llvm-source-trunk/lib/IR/Value.cpp:822!
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Nov 28 00:36:41 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31189
Bug ID: 31189
Summary: opt crashes with "opt -instcombine -functionattrs
-licm -licm": UNREACHABLE executed at
/tmp/llvm-builder/llvm-source-trunk/lib/IR/Value.cpp:8
22!
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: su at cs.ucdavis.edu
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
$ clang -v
clang version 4.0.0 (trunk 287994)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-trunk/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
$
$ clang -c -emit-llvm -w -o small.bc small.c
$ opt -instcombine -functionattrs -licm -licm -o small-opt.bc small.bc
While deleting: i32 %call
An asserting value handle still pointed to this value!
UNREACHABLE executed at
/tmp/llvm-builder/llvm-source-trunk/lib/IR/Value.cpp:822!
#0 0x0000000001c45c65 (opt+0x1c45c65)
#1 0x0000000001c43d4e (opt+0x1c43d4e)
#2 0x0000000001c43eb0 (opt+0x1c43eb0)
#3 0x00007f4cf9abb330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x00007f4cf88a7c37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007f4cf88ab028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#6 0x0000000001bef47a (opt+0x1bef47a)
#7 0x0000000001819ed8 (opt+0x1819ed8)
#8 0x000000000181ad1d (opt+0x181ad1d)
#9 0x00000000017b6499 (opt+0x17b6499)
#10 0x00000000017b25b5 (opt+0x17b25b5)
#11 0x0000000001ab5984 (opt+0x1ab5984)
#12 0x0000000001ab58af (opt+0x1ab58af)
#13 0x0000000001ab58af (opt+0x1ab58af)
#14 0x0000000001ab660a (opt+0x1ab660a)
#15 0x0000000001ab6b24 (opt+0x1ab6b24)
#16 0x00000000013465fb (opt+0x13465fb)
#17 0x00000000017e0053 (opt+0x17e0053)
#18 0x00000000012b8157 (opt+0x12b8157)
#19 0x00000000017e0daa (opt+0x17e0daa)
#20 0x000000000078cfc1 (opt+0x78cfc1)
#21 0x00007f4cf8892f45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#22 0x00000000007e756b (opt+0x7e756b)
Stack dump:
0. Program arguments: opt -instcombine -functionattrs -licm -licm -o
small-opt.bc small.bc
1. Running pass 'CallGraph Pass Manager' on module 'small.bc'.
2. Running pass 'Loop Pass Manager' on function '@fn2'
3. Running pass 'Loop Invariant Code Motion' on basic block '%while.cond1'
Aborted (core dumped)
$
----------------------------------
int a, b;
void fn1 (int p) {}
int fn2 ()
{
while (a)
while (a)
fn1 (b || fn2 ());
return 0;
}
int main ()
{
fn2 ();
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/20161128/949ff1db/attachment-0001.html>
More information about the llvm-bugs
mailing list