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: [email protected]
Reporter: [email protected]
CC: [email protected]
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 <[email protected]>
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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs