<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 `!NodePtr->isKnownSentinel()' failed [regression, AMDGPU]"
   href="https://llvm.org/bugs/show_bug.cgi?id=30514">30514</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `!NodePtr->isKnownSentinel()' failed [regression, AMDGPU]
          </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>Common Code Generator Code
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>vedran@miletic.net
          </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>The Talos Principle crashes on AMDGPU with:

Talos: /home/vedranm/workspace/llvm/include/llvm/ADT/ilist_iterator.h:126:
llvm::ilist_iterator<OptionsT, IsReverse, IsConst>::reference
llvm::ilist_iterator<OptionsT, IsReverse, IsConst>::operator*() const [with
OptionsT = llvm::ilist_detail::node_options<llvm::MachineInstr, true, true,
void>; bool IsReverse = false; bool IsConst = true;
llvm::ilist_iterator<OptionsT, IsReverse, IsConst>::reference = const
llvm::MachineInstr&]: Assertion `!NodePtr->isKnownSentinel()' failed.

6037e199c8a061b2e9cb22c434644a0eac659fb9 is the first bad commit
commit 6037e199c8a061b2e9cb22c434644a0eac659fb9
Author: Duncan P. N. Exon Smith <<a href="mailto:dexonsmith@apple.com">dexonsmith@apple.com</a>>
Date:   Sun Sep 11 16:38:18 2016 +0000

    CodeGen: Turn on sentinel tracking for MachineInstr iterators

    This is a prep commit before fixing MachineBasicBlock::reverse_iterator
    invalidation semantics, ala r281167 for ilist::reverse_iterator.  This
    changes MachineBasicBlock::Instructions to track which node is the
    sentinel regardless of LLVM_ENABLE_ABI_BREAKING_CHECKS.

    There's almost no functionality change (aside from ABI).  However, in
    the rare configuration:

        #if !defined(NDEBUG) && !defined(LLVM_ENABLE_ABI_BREAKING_CHECKS)

    the isKnownSentinel() assertions in ilist_iterator<>::operator* suddenly
    have teeth for MachineInstr.  If these assertions start firing for your
    out-of-tree backend, have a look at the suggestions in the commit
    message for r279314, and at some of the commits leading up to it that
    avoid dereferencing the end() iterator.

    git-svn-id: <a href="https://llvm.org/svn/llvm-project/llvm/trunk@281168">https://llvm.org/svn/llvm-project/llvm/trunk@281168</a>
91177308-0d34-0410-b5e6-96231b3b80d8</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>