<html>
    <head>
      <base href="http://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 --- - "getVRegDef assumes a single definition or no definition" cause by FastIsel"
   href="http://llvm.org/bugs/show_bug.cgi?id=21557">21557</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"getVRegDef assumes a single definition or no definition" cause by FastIsel
          </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>All
          </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>Common Code Generator Code
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>kfischer@college.harvard.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13335" name="attach_13335" title="Reproducing bitcode">attachment 13335</a> <a href="attachment.cgi?id=13335&action=edit" title="Reproducing bitcode">[details]</a></span>
Reproducing bitcode

The attached bitcode crashes `llc -fast-isel` on trunk. 

Stack trace is as follows:

```
ssertion failed: ((I.atEnd() || std::next(I) == def_instr_end()) && "getVRegDef
assumes a single definition or no definition"), function getVRegDef, file
/Users/kfischer/julia/deps/llvm-svn/lib/CodeGen/MachineRegisterInfo.cpp, line
306.
0  libLLVM-3.6svn.dylib     0x000000010deda42e
llvm::sys::PrintStackTrace(__sFILE*) + 46
1  libLLVM-3.6svn.dylib     0x000000010dedb7db
PrintStackTraceSignalHandler(void*) + 27
2  libLLVM-3.6svn.dylib     0x000000010dedbc25 SignalHandler(int) + 565
3  libsystem_platform.dylib 0x00007fff99da1f1a _sigtramp + 26
4  libsystem_platform.dylib 0x0000000000000004 _sigtramp + 1713758468
5  libLLVM-3.6svn.dylib     0x000000010dedb80b raise + 27
6  libLLVM-3.6svn.dylib     0x000000010dedb8c2 abort + 18
7  libLLVM-3.6svn.dylib     0x000000010dedb8a1 __assert_rtn + 129
8  libLLVM-3.6svn.dylib     0x000000010d1783d9
llvm::MachineRegisterInfo::getVRegDef(unsigned int) const + 281
9  libLLVM-3.6svn.dylib     0x000000010d0d3211 (anonymous
namespace)::MachineCSE::PerformTrivialCopyPropagation(llvm::MachineInstr*,
llvm::MachineBasicBlock*) + 193
10 libLLVM-3.6svn.dylib     0x000000010d0d2111 (anonymous
namespace)::MachineCSE::ProcessBlock(llvm::MachineBasicBlock*) + 305
11 libLLVM-3.6svn.dylib     0x000000010d0d1e17 (anonymous
namespace)::MachineCSE::PerformCSE(llvm::DomTreeNodeBase<llvm::MachineBasicBlock>*)
+ 583
12 libLLVM-3.6svn.dylib     0x000000010d0d1bb1 (anonymous
namespace)::MachineCSE::runOnMachineFunction(llvm::MachineFunction&) + 209
13 libLLVM-3.6svn.dylib     0x000000010d10fe8e
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 110
14 libLLVM-3.6svn.dylib     0x000000010d52a3fb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 427
15 libLLVM-3.6svn.dylib     0x000000010d52a708
llvm::FPPassManager::runOnModule(llvm::Module&) + 104
16 libLLVM-3.6svn.dylib     0x000000010d52b114 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&) + 1412
17 libLLVM-3.6svn.dylib     0x000000010d52a9be
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 302
18 libLLVM-3.6svn.dylib     0x000000010d52b891
llvm::legacy::PassManager::run(llvm::Module&) + 33
```</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>