<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Inliner crashes in ValueHandleBase::ValueIsDeleted"
   href="https://llvm.org/bugs/show_bug.cgi?id=26865">26865</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Inliner crashes in ValueHandleBase::ValueIsDeleted
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Interprocedural Optimizations
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mattias.v.eriksson@ericsson.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=15997" name="attach_15997" title="Reduced reproducer">attachment 15997</a> <a href="attachment.cgi?id=15997&action=edit" title="Reduced reproducer">[details]</a></span>
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.</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>