<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 --- - Crash in handleMove during scheduling of OpenCV kernel"
   href="https://llvm.org/bugs/show_bug.cgi?id=27856">27856</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash in handleMove during scheduling of OpenCV kernel
          </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>Register Allocator
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>Matthew.Arsenault@amd.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, matze@braunis.de
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16406" name="attach_16406" title="Testcase with new opt passes run">attachment 16406</a> <a href="attachment.cgi?id=16406&action=edit" title="Testcase with new opt passes run">[details]</a></span>
Testcase with new opt passes run

This crashes the original testcase when <a href="http://reviews.llvm.org/D20304">http://reviews.llvm.org/D20304</a> is
applied.

A reduced version hits a verifier error instead after scheduling.




llc: /home/matt/src/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1066: void
llvm::LiveIntervals::HMEditor::handleMoveDown(llvm::LiveRange&): Assertion
`OldIdxVNI->def == OldIdxOut->start && "Inconsistent def"' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff671e295 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff671e295 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff671f6da in abort () from /usr/lib/libc.so.6
#2  0x00007ffff6717297 in __assert_fail_base () from /usr/lib/libc.so.6
#3  0x00007ffff6717342 in __assert_fail () from /usr/lib/libc.so.6
#4  0x0000000001d74af7 in llvm::LiveIntervals::HMEditor::handleMoveDown
(this=0x7fffffffca00, LR=...) at
/home/matt/src/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1066
#5  0x0000000001d7465a in llvm::LiveIntervals::HMEditor::updateRange
(this=0x7fffffffca00, LR=..., Reg=2147484174, LaneMask=0) at
/home/matt/src/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:996
#6  0x0000000001d74394 in llvm::LiveIntervals::HMEditor::updateAllRanges
(this=0x7fffffffca00, MI=0x46a3ec0) at
/home/matt/src/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:964
#7  0x0000000001d71bc2 in llvm::LiveIntervals::handleMove (this=0x461bd00,
MI=..., UpdateFlags=true) at
/home/matt/src/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1380
#8  0x0000000001e23f1d in llvm::ScheduleDAGMI::moveInstruction (this=0x46dd0d0,
MI=0x46a3ec0, InsertPos=...) at
/home/matt/src/llvm/lib/CodeGen/MachineScheduler.cpp:655
#9  0x0000000001e279f1 in llvm::ScheduleDAGMILive::scheduleMI (this=0x46dd0d0,
SU=0x46ecbc0, IsTopNode=false) at
/home/matt/src/llvm/lib/CodeGen/MachineScheduler.cpp:1327
#10 0x0000000001e26973 in llvm::ScheduleDAGMILive::schedule (this=0x46dd0d0) at
/home/matt/src/llvm/lib/CodeGen/MachineScheduler.cpp:1122
#11 0x0000000001e23690 in (anonymous
namespace)::MachineSchedulerBase::scheduleRegions (this=0x461c650,
Scheduler=..., FixKillFlags=false) at
/home/matt/src/llvm/lib/CodeGen/MachineScheduler.cpp:492
#12 0x0000000001e22a52 in (anonymous
namespace)::MachineScheduler::runOnMachineFunction (this=0x461c650, mf=...) at
/home/matt/src/llvm/lib/CodeGen/MachineScheduler.cpp:357
#13 0x0000000001decb98 in llvm::MachineFunctionPass::runOnFunction
(this=0x461c690, F=...) at
/home/matt/src/llvm/lib/CodeGen/MachineFunctionPass.cpp:60
#14 0x00000000020f2957 in llvm::FPPassManager::runOnFunction (this=0x45d1d80,
F=...) at /home/matt/src/llvm/lib/IR/LegacyPassManager.cpp:1526
#15 0x00000000020f2ace in llvm::FPPassManager::runOnModule (this=0x45d1d80,
M=...) at /home/matt/src/llvm/lib/IR/LegacyPassManager.cpp:1547
#16 0x00000000020f2e1b in (anonymous namespace)::MPPassManager::runOnModule
(this=0x45ed4b0, M=...) at
/home/matt/src/llvm/lib/IR/LegacyPassManager.cpp:1603
#17 0x00000000020f34cd in llvm::legacy::PassManagerImpl::run (this=0x45e9c40,
M=...) at /home/matt/src/llvm/lib/IR/LegacyPassManager.cpp:1706
#18 0x00000000020f36d9 in llvm::legacy::PassManager::run (this=0x7fffffffd5a0,
M=...) at /home/matt/src/llvm/lib/IR/LegacyPassManager.cpp:1737
#19 0x0000000000d2bcfe in compileModule (argv=0x7fffffffdfe8, Context=...) at
/home/matt/src/llvm/tools/llc/llc.cpp:465
#20 0x0000000000d2a804 in main (argc=8, argv=0x7fffffffdfe8) at
/home/matt/src/llvm/tools/llc/llc.cpp:244</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>