[LLVMbugs] [Bug 11102] New: [AVX] x86 isel hits assert (begin() + idx < end()), function operator[], file [...]/ADT/SmallVector.h, line 154

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 10 09:01:11 PDT 2011


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

           Summary: [AVX] x86 isel hits assert (begin() + idx < end()),
                    function operator[], file [...]/ADT/SmallVector.h,
                    line 154
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: matt at pharr.org
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=7429)
 --> (http://llvm.org/bugs/attachment.cgi?id=7429)
test case

If I run "llc -mattr=+avx" with the attached test case, the assertion above
hits in the X86 DAG->DAG instruction selection pass.

For reasons unknown, I don't get a reasonable stack trace from llc, but the
following seems to be where it's hitting this:

5  ispc              0x000000010cd0f648 __assert_rtn + 56
6  ispc              0x000000010c5bc7c0
llvm::X86TargetLowering::LowerVECTOR_SHUFFLE(llvm::SDValue,
llvm::SelectionDAG&) const + 31840
7  ispc              0x000000010c5dbcd7
llvm::X86TargetLowering::LowerOperation(llvm::SDValue, llvm::SelectionDAG&)
const + 487
8  ispc              0x000000010c6b1ab0 (anonymous
namespace)::SelectionDAGLegalize::LegalizeOp(llvm::SDValue) + 3696
9  ispc              0x000000010c6b0a9d llvm::SelectionDAG::Legalize() + 173
10 ispc              0x000000010c7bc2c9
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 3161
11 ispc              0x000000010c7ba8b9
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 265
12 ispc              0x000000010c7b9d2a
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 970
13 ispc              0x000000010c8a7dbc
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 60
14 ispc              0x000000010cc6f97d
llvm::FPPassManager::runOnFunction(llvm::Function&) + 349
15 ispc              0x000000010cc6fc5b
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
16 ispc              0x000000010cc6fd99
llvm::MPPassManager::runOnModule(llvm::Module&) + 265
17 ispc              0x000000010cc703a2
llvm::PassManagerImpl::run(llvm::Module&) + 290
18 ispc              0x000000010cc708fd llvm::PassManager::run(llvm::Module&) +
13

-- 
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