[LLVMbugs] [Bug 1314] NEW: llc assertion failure

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Apr 6 17:05:52 PDT 2007


           Summary: llc assertion failure
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: lefever at crhc.uiuc.edu

I am getting an assertion failure when I run "llc -f -o /dev/null code.bc"
code.bc has been formed by linking other bytecode files that were all generated
by llvm-gcc and transformed using opt.  All uses of opt passed the -verify option.

I ran llc in gdb and it stops with:

typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X =
llvm::ConstantSDNode, Y = llvm::SDOperand]: Assertion `isa<X>(Val) &&
"cast<Ty>() argument of incompatible type!"' failed.

The stack trace at that point is:

(gdb) bt
#0  0x0000003de682e37d in raise () from /lib64/tls/libc.so.6
#1  0x0000003de682faae in abort () from /lib64/tls/libc.so.6
#2  0x0000003de6827c31 in __assert_fail () from /lib64/tls/libc.so.6
#3  0x000000000082829c in llvm::cast<llvm::ConstantSDNode, llvm::SDOperand>
(Val=@0x166eb20) at
#4  0x0000000000a6b18d in llvm::ScheduleDAG::EmitNode (this=0x1660180,
Node=0x1672330, VRBaseMap=@0x7fbfffe5e0) at ScheduleDAG.cpp:543
#5  0x0000000000a6b67b in llvm::ScheduleDAG::EmitSchedule (this=0x1660180) at
#6  0x00000000009e4e16 in (anonymous namespace)::ScheduleDAGRRList::Schedule
(this=0x1660180) at ScheduleDAGRRList.cpp:114
#7  0x0000000000a6b7e9 in llvm::ScheduleDAG::Run (this=0x1660180) at
#8  0x0000000000a18c1c in llvm::SelectionDAGISel::ScheduleAndEmitDAG
(this=0x1011d20, DAG=@0x7fbfffec70) at SelectionDAGISel.cpp:4528
#9  0x00000000008d6052 in (anonymous
namespace)::X86DAGToDAGISel::InstructionSelectBasicBlock (this=0x1011d20,
DAG=@0x7fbfffec70) at X86ISelDAGToDAG.cpp:476
#10 0x0000000000a1823d in llvm::SelectionDAGISel::CodeGenAndEmitDAG
(this=0x1011d20, DAG=@0x7fbfffec70) at SelectionDAGISel.cpp:4387
#11 0x0000000000a18317 in llvm::SelectionDAGISel::SelectBasicBlock
(this=0x1011d20, LLVMBB=0x12780c0, MF=@0x15ee620, FuncInfo=@0x7fbfffee50) at
#12 0x0000000000a16958 in llvm::SelectionDAGISel::runOnFunction (this=0x1011d20,
Fn=@0x1058130) at SelectionDAGISel.cpp:4090
#13 0x000000000098b6a9 in (anonymous namespace)::X86DAGToDAGISel::runOnFunction
(this=0x1011d20, Fn=@0x1058130) at X86ISelDAGToDAG.cpp:122
#14 0x0000000000bd90b2 in llvm::FPPassManager::runOnFunction (this=0x1013020,
F=@0x1058130) at PassManager.cpp:1047
#15 0x0000000000bd8e7c in llvm::FunctionPassManagerImpl::run (this=0x119be60,
F=@0x1058130) at PassManager.cpp:1006
#16 0x0000000000bd8d76 in llvm::FunctionPassManager::run (this=0x7fbffff1d0,
F=@0x1058130) at PassManager.cpp:951
#17 0x00000000007bd037 in main (argc=5, argv=0x7fbffff338) at llc.cpp:290

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list