[LLVMbugs] [Bug 3288] New: Multi-dimensional aggregate assert failure in SelectionDAGLowering

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 6 12:53:55 PST 2009


           Summary: Multi-dimensional aggregate assert failure in
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: markleone at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Inserting at certain offsets in a multi-dimensional aggregate tickles an
index-related assert-failure in SelectionDAGLowering:

        %i = insertvalue [2 x [2 x i32]] undef, [2 x i32] undef, 1

It doesn't matter whether the operands are undef, but the 1 index is

Assertion failed: (Begin + idx <= End), function operator[], file
llvm-trunk/include/llvm/ADT/SmallVector.h, line 127.

  llc  llvm::SmallVectorImpl<llvm::SDValue>::operator[](unsigned int) + 86
  llc  llvm::SelectionDAGLowering::visitInsertValue(llvm::InsertValueInst&) +
  llc  llvm::SelectionDAGLowering::visit(unsigned int, llvm::User&) + 1487
  llc  llvm::SelectionDAGLowering::visit(llvm::Instruction&) + 40
  llc  llvm::SelectionDAGISel::SelectBasicBlock(llvm::BasicBlock*,
llvm::ilist_iterator<llvm::Instruction>) + 95
  llc  llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function&,
llvm::MachineFunction&, llvm::MachineModuleInfo*, llvm::TargetInstrInfo const&)
+ 2100
  llc  llvm::SelectionDAGISel::runOnFunction(llvm::Function&) + 852

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