[LLVMbugs] [Bug 10525] New: const llvm::SDValue& llvm::SDNode::getOperand(unsigned int) const: Assertion `Num < NumOperands && "Invalid child # of SDNode!"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 28 07:14:57 PDT 2011


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

           Summary: const llvm::SDValue& llvm::SDNode::getOperand(unsigned
                    int) const: Assertion `Num < NumOperands && "Invalid
                    child # of SDNode!"' failed.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nadav.rotem at intel.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=6957)
 --> (http://llvm.org/bugs/attachment.cgi?id=6957)
LL file reproducing the problem

llc:
/nfs/iil/disks/cvcc/nrotem/llvm/readonly-llvm-head/include/llvm/CodeGen/SelectionDAGNodes.h:533:
const llvm::SDValue& llvm::SDNode::getOperand(unsigned int) const: Assertion
`Num < NumOperands && "Invalid child # of SDNode!"' failed.
0  llc             0x0000000001549f06
1  llc             0x000000000154a494
2  libpthread.so.0 0x00002aaaaabd4d60
3  libc.so.6       0x00002aaaab274f45 gsignal + 53
4  libc.so.6       0x00002aaaab276340 abort + 272
5  libc.so.6       0x00002aaaab26e486 __assert_fail + 246
6  llc             0x0000000000b27416 llvm::SDNode::getOperand(unsigned int)
const + 62
7  llc             0x0000000000e83445
8  llc             0x0000000000e83704
9  llc             0x0000000000ea8147
llvm::X86TargetLowering::PerformDAGCombine(llvm::SDNode*,
llvm::TargetLowering::DAGCombinerInfo&) const + 507
10 llc             0x0000000000f507e5 (anonymous
namespace)::DAGCombiner::combine(llvm::SDNode*) + 365
11 llc             0x0000000000f53205 (anonymous
namespace)::DAGCombiner::Run(llvm::CombineLevel) + 505
12 llc             0x0000000000f53628
llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AliasAnalysis&,
llvm::CodeGenOpt::Level) + 54
13 llc             0x0000000000ffe967
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 2807
14 llc             0x000000000100054e
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 230
15 llc             0x0000000001000eb0
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 2400
16 llc             0x000000000100142f
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 849
17 llc             0x000000000114c971
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 85
18 llc             0x0000000001484137
llvm::FPPassManager::runOnFunction(llvm::Function&) + 371
19 llc             0x000000000148432f
llvm::FPPassManager::runOnModule(llvm::Module&) + 81
20 llc             0x0000000001483de3
llvm::MPPassManager::runOnModule(llvm::Module&) + 381
21 llc             0x0000000001485598 llvm::PassManagerImpl::run(llvm::Module&)
+ 116
22 llc             0x00000000014855fb llvm::PassManager::run(llvm::Module&) +
33
23 llc             0x0000000000ab884d main + 2403
24 libc.so.6       0x00002aaaab262304 __libc_start_main + 244
25 llc             0x0000000000ab6f99
Stack dump:
0.    Program arguments: ../llc temp.ll -march=x86-64 -mattr=+sse2,+sse41 -o
/dev/null 
1.    Running pass 'Function Pass Manager' on module 'temp.ll'.
2.    Running pass 'X86 DAG->DAG Instruction Selection' on function
'@autogen_163411_5000'
; ModuleID = 'bugpoint-reduced-simplified.bc'
target triple = "x86_64-unknown-linux-gnu"

define void @autogen_163411_5000() {
BB:
  %L = load <2 x i64>* undef
  %Shuff11 = shufflevector <2 x i64> %L, <2 x i64> %L, <2 x i32> <i32 2, i32 0>
  %I51 = insertelement <2 x i64> undef, i64 undef, i32 0
  %Shuff152 = shufflevector <2 x i64> %I51, <2 x i64> %Shuff11, <2 x i32> <i32
1, i32 3>
  store <2 x i64> %Shuff152, <2 x i64>* undef
  ret void
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list