<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 is hit: "The number of nodes scheduled doesn't match the expected number!""
   href="https://bugs.llvm.org/show_bug.cgi?id=32525">32525</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion is hit: "The number of nodes scheduled doesn't match the expected number!"
          </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>GlobalISel
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>babokin@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18225" name="attach_18225" title="reproducer">attachment 18225</a> <a href="attachment.cgi?id=18225&action=edit" title="reproducer">[details]</a></span>
reproducer

clang revision: 299454

<span class="quote">> cat f.cpp</span >
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;
}

<span class="quote">> clang++ -O2 -c f.cpp</span >
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)

<...></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>