<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 --- - Assertion `ChainNode->getOpcode() != ISD::DELETED_NODE && "Deleted node left in chain"' failed."
   href="https://llvm.org/bugs/show_bug.cgi?id=31710">31710</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `ChainNode->getOpcode() != ISD::DELETED_NODE && "Deleted node left in chain"' failed.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>4.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </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>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>kpn@neutralgood.org
          </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=17874" name="attach_17874" title="The reduced bitcode that triggers the assertion.">attachment 17874</a> <a href="attachment.cgi?id=17874&action=edit" title="The reduced bitcode that triggers the assertion.">[details]</a></span>
The reduced bitcode that triggers the assertion.

Bug found when running 4.0.0rc1 on Linux on System/Z.

+ exec /sas3rd/wky/mva-alzx/lzx/llvm/llvm-400rc1/install/stock/bin/llc
bugpoint-reduced-simplified.bc
llc:
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:2264:
void llvm::SelectionDAGISel::UpdateChains(llvm::SDNode*, llvm::SDValue, const
llvm::SmallVectorImpl<llvm::SDNode*>&, bool): Assertion `ChainNode->getOpcode()
!= ISD::DELETED_NODE && "Deleted node left in chain"' failed.
#0 0x0000000081a66d8a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/Support/Unix/Signals.inc:402:0
#1 0x0000000081a6719a PrintStackTraceSignalHandler(void*)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/Support/Unix/Signals.inc:466:0
#2 0x0000000081a64dc6 llvm::sys::RunSignalHandlers()
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/Support/Signals.cpp:44:0
#3 0x0000000081a66406 SignalHandler(int)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/Support/Unix/Signals.inc:253:0
#4 0x00000000946e039e
#5 0x000003ffa49ba830 __GI_raise
/usr/src/debug/glibc-2.17-c758a686/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#6 0x000003ffa49bc0b8 __GI_abort
/usr/src/debug/glibc-2.17-c758a686/stdlib/abort.c:92:0
#7 0x000003ffa49b2886 __assert_fail_base
/usr/src/debug/glibc-2.17-c758a686/assert/assert.c:53:0
#8 0x000003ffa49b2914 (/lib64/libc.so.6+0x32914)
#9 0x000000008187ebf6 llvm::SelectionDAGISel::UpdateChains(llvm::SDNode*,
llvm::SDValue, llvm::SmallVectorImpl<llvm::SDNode*> const&, bool)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:2268:0
#10 0x0000000081887582 llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*,
unsigned char const*, unsigned int)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:3540:0
#11 0x000000008088b294 (anonymous
namespace)::SystemZDAGToDAGISel::SelectCode(llvm::SDNode*)
/sasusr/u/saskpn/clvm/4.0.0rc1/LZXND/lib/Target/SystemZ/SystemZGenDAGISel.inc:25634:0
#12 0x0000000080895280 (anonymous
namespace)::SystemZDAGToDAGISel::Select(llvm::SDNode*)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp:1350:0
#13 0x0000000081877f5c llvm::SelectionDAGISel::DoInstructionSelection()
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:955:0
#14 0x0000000081877640 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:861:0
#15 0x0000000081875cfc
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction,
true, false, void>, false, true>,
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, true,
false, void>, false, true>, bool&)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:684:0
#16 0x000000008187afc8
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1561:0
#17 0x000000008187497e
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:509:0
#18 0x000000008088b1c2 (anonymous
namespace)::SystemZDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp:338:0
#19 0x0000000080ed09e2
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/CodeGen/MachineFunctionPass.cpp:62:0
#20 0x000000008147e726 llvm::FPPassManager::runOnFunction(llvm::Function&)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/IR/LegacyPassManager.cpp:1513:0
#21 0x000000008147e974 llvm::FPPassManager::runOnModule(llvm::Module&)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/IR/LegacyPassManager.cpp:1534:0
#22 0x000000008147ee3c (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/IR/LegacyPassManager.cpp:1590:0
#23 0x000000008147f730 llvm::legacy::PassManagerImpl::run(llvm::Module&)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/IR/LegacyPassManager.cpp:1693:0
#24 0x000000008147fa90 llvm::legacy::PassManager::run(llvm::Module&)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/lib/IR/LegacyPassManager.cpp:1724:0
#25 0x00000000807fef7a compileModule(char**, llvm::LLVMContext&)
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/tools/llc/llc.cpp:530:0
#26 0x00000000807fd330 main
/sasusr/u/saskpn/clvm/4.0.0rc1/llvm/tools/llc/llc.cpp:285:0
#27 0x000003ffa49a4572 __libc_start_main
/usr/src/debug/glibc-2.17-c758a686/csu/libc-start.c:308:0
#28 0x00000000807faf76 _start
(/sas3rd/wky/mva-alzx/lzx/llvm/llvm-400rc1/install/stock/bin/llc+0x807faf76)
Stack dump:
0.    Program arguments:
/sas3rd/wky/mva-alzx/lzx/llvm/llvm-400rc1/install/stock/bin/llc
bugpoint-reduced-simplified.bc 
1.    Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.bc'.
2.    Running pass 'SystemZ DAG->DAG Pattern Instruction Selection' on function
'@btldata'</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>