[llvm-bugs] [Bug 26865] New: Inliner crashes in ValueHandleBase::ValueIsDeleted
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Mar 7 02:48:49 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26865
Bug ID: 26865
Summary: Inliner crashes in ValueHandleBase::ValueIsDeleted
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Interprocedural Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: mattias.v.eriksson at ericsson.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 15997
--> https://llvm.org/bugs/attachment.cgi?id=15997&action=edit
Reduced reproducer
The attached file crashes opt like this:
opt -S -globals-aa -jump-threading -inline -o /dev/null
bugpoint-reduced-simplified.ll -debug-pass=Arguments
Pass Arguments: -targetlibinfo -tti -assumption-cache-tracker -basiccg
-globals-aa -lazy-value-info -jump-threading -basiccg -inline -verify
-print-module
While deleting: i16 (i16, i16, i16)* %check_i
An asserting value handle still pointed to this value!
UNREACHABLE executed at ../lib/IR/Value.cpp:740!
0 opt 0x00000000023cec4e
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 46
1 opt 0x00000000023cf059
2 opt 0x00000000023cd963 llvm::sys::RunSignalHandlers() + 131
3 opt 0x00000000023cf49f
4 libpthread.so.0 0x00007ff74739e340
5 libc.so.6 0x00007ff7465c6cc9 gsignal + 57
6 libc.so.6 0x00007ff7465ca0d8 abort + 328
7 opt 0x0000000002351a86
8 opt 0x0000000001e36baa
llvm::ValueHandleBase::ValueIsDeleted(llvm::Value*) + 714
9 opt 0x0000000001e3674c llvm::Value::~Value() + 60
10 opt 0x0000000001ce3225
11 opt 0x0000000001ce2ea5
12 opt 0x0000000001d7e95b
13 opt 0x0000000001d7d371
14 opt 0x0000000001d773f8 llvm::Function::~Function() + 152
15 opt 0x0000000001d775a9 llvm::Function::~Function() + 25
16 opt 0x0000000001ed0d5a
llvm::Inliner::runOnSCC(llvm::CallGraphSCC&) + 5418
17 opt 0x0000000001ece297
18 opt 0x0000000001726d56
19 opt 0x00000000017267ec
20 opt 0x000000000172612b
21 opt 0x0000000001dcf3d1
22 opt 0x0000000001dceecb
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 347
23 opt 0x0000000001dcf911
llvm::legacy::PassManager::run(llvm::Module&) + 33
24 opt 0x000000000092226c main + 8588
25 libc.so.6 0x00007ff7465b1ec5 __libc_start_main + 245
26 opt 0x00000000008f6578
Stack dump:
0. Program arguments: build-master/bin/opt -S -globals-aa -jump-threading
-inline -o /dev/null bugpoint-reduced-simplified.ll -debug-pass=Arguments
1. Running pass 'CallGraph Pass Manager' on module
'bugpoint-reduced-simplified.ll'.
Aborted
check_i is the name of the function that was inlined at the only call. When the
inliner tries to delete it it crashes.
--
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/20160307/ae2d9180/attachment.html>
More information about the llvm-bugs
mailing list