[LLVMbugs] [Bug 21557] New: "getVRegDef assumes a single definition or no definition" cause by FastIsel

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 12 23:26:51 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21557

            Bug ID: 21557
           Summary: "getVRegDef assumes a single definition or no
                    definition" cause by FastIsel
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: kfischer at college.harvard.edu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13335
  --> http://llvm.org/bugs/attachment.cgi?id=13335&action=edit
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
```

-- 
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/20141113/d3bfc8fd/attachment.html>


More information about the llvm-bugs mailing list