[llvm-bugs] [Bug 30514] New: Assertion `!NodePtr->isKnownSentinel()' failed [regression, AMDGPU]
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Sep 24 20:15:03 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30514
Bug ID: 30514
Summary: Assertion `!NodePtr->isKnownSentinel()' failed
[regression, AMDGPU]
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
Assignee: unassignedbugs at nondot.org
Reporter: vedran at miletic.net
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
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 <dexonsmith at apple.com>
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: https://llvm.org/svn/llvm-project/llvm/trunk@281168
91177308-0d34-0410-b5e6-96231b3b80d8
--
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/20160925/5b0531a7/attachment.html>
More information about the llvm-bugs
mailing list