[llvm-bugs] [Bug 32525] New: Assertion is hit: "The number of nodes scheduled doesn't match the expected number!"
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Apr 4 16:11:08 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=32525
Bug ID: 32525
Summary: Assertion is hit: "The number of nodes scheduled
doesn't match the expected number!"
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: GlobalISel
Assignee: unassignedbugs at nondot.org
Reporter: babokin at gmail.com
CC: llvm-bugs at lists.llvm.org
Created attachment 18225
--> https://bugs.llvm.org/attachment.cgi?id=18225&action=edit
reproducer
clang revision: 299454
> cat f.cpp
extern short var_2, var_22, var_27, var_35, var_48, var_81;
extern int var_6, var_36, var_53;
extern long int var_99, var_399;
void foo() {
var_399 = var_35 * (var_2 && var_22 && var_27 && (var_36 && var_6)) *
(var_2 && var_22 && var_27 && var_53 && (var_6 || var_48));
if (var_2 && var_22 && var_27 && var_53 && (var_6 || var_48))
var_81 = var_6 & var_99;
}
> clang++ -O2 -c f.cpp
clang-5.0:
/home/dybaboki/llvm/llvm-trunk-20170404/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp:696:
void llvm::ScheduleDAGSDNodes::VerifyScheduledSequence(bool): Assertion
`Sequence.size() - Noops == ScheduledNodes && "The number of nodes scheduled
doesn't match the expected number!"' failed.
#0 0x0000000001268f8f llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/dybaboki/llvm/bin-trunk-20170404/bin/clang-5.0+0x1268f8f)
#1 0x0000000001269296 SignalHandler(int)
(/home/dybaboki/llvm/bin-trunk-20170404/bin/clang-5.0+0x1269296)
#2 0x00007fb567d3c370 __restore_rt (/lib64/libpthread.so.0+0xf370)
#3 0x00007fb5668b91d7 __GI_raise (/lib64/libc.so.6+0x351d7)
#4 0x00007fb5668ba8c8 __GI_abort (/lib64/libc.so.6+0x368c8)
#5 0x00007fb5668b2146 __assert_fail_base (/lib64/libc.so.6+0x2e146)
#6 0x00007fb5668b21f2 (/lib64/libc.so.6+0x2e1f2)
#7 0x0000000001a13461
(/home/dybaboki/llvm/bin-trunk-20170404/bin/clang-5.0+0x1a13461)
#8 0x0000000001a06298 (anonymous namespace)::ScheduleDAGRRList::Schedule()
(/home/dybaboki/llvm/bin-trunk-20170404/bin/clang-5.0+0x1a06298)
#9 0x0000000001999058 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/home/dybaboki/llvm/bin-trunk-20170404/bin/clang-5.0+0x1999058)
#10 0x0000000001996758
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/home/dybaboki/llvm/bin-trunk-20170404/bin/clang-5.0+0x1996758)
#11 0x0000000001993733
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/home/dybaboki/llvm/bin-trunk-20170404/bin/clang-5.0+0x1993733)
#12 0x0000000000812731 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/home/dybaboki/llvm/bin-trunk-20170404/bin/clang-5.0+0x812731)
#13 0x0000000000b80ab3
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/home/dybaboki/llvm/bin-trunk-20170404/bin/clang-5.0+0xb80ab3)
#14 0x0000000000e4a4ff llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/dybaboki/llvm/bin-trunk-20170404/bin/clang-5.0+0xe4a4ff)
#15 0x0000000000e4a753 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/dybaboki/llvm/bin-trunk-20170404/bin/clang-5.0+0xe4a753)
<...>
--
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/20170404/08a927ca/attachment-0001.html>
More information about the llvm-bugs
mailing list