[LLVMbugs] [Bug 4747] New: assertion failed: setOperand() out of range!

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Aug 20 08:43:26 PDT 2009


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

           Summary: assertion failed: setOperand() out of range!
           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: bob.wilson at apple.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=3342)
 --> (http://llvm.org/bugs/attachment.cgi?id=3342)
testcase (from SingleSource/CoyoteBench/fftbench)

This is a regression from something that changed yesterday.  It hit twice in
the armv6 nightly tests.  The attached testcase is not bugpoint-reduced because
when I reduce it, it hits another problem.  Run this with llc (no options
needed) and you get:

Assertion failed: (i_nocapture < OperandTraits<PHINode>::operands(this) &&
"setOperand() out of range!"), function setOperand, file
/Users/bwilson/local/llvm/llvm/include/llvm/Instructions.h, line 2002.
0   llc               0x00b03284 PrintStackTrace(void*) + 45
1   llc               0x00b0388c SignalHandler(int) + 410
2   libSystem.B.dylib 0x98115bfb _sigtramp + 43
3   libSystem.B.dylib 0xffffffff _sigtramp + 1743692847
4   libSystem.B.dylib 0x981a3ba5 raise + 26
5   libSystem.B.dylib 0x981b9c5c abort + 93
6   libSystem.B.dylib 0x981a6804 __pthread_markcancel + 0
7   llc               0x00a026c1 llvm::PHINode::setOperand(unsigned int,
llvm::Value*) + 89
8   llc               0x00a02714 llvm::PHINode::setIncomingBlock(unsigned int,
llvm::BasicBlock*) + 34
9   llc               0x0093da5d llvm::SplitCriticalEdge(llvm::TerminatorInst*,
unsigned int, llvm::Pass*, bool) + 619
10  llc               0x0091ebcd SplitEdgeNicely(llvm::TerminatorInst*,
unsigned int, llvm::SmallSet<std::pair<llvm::BasicBlock const*,
llvm::BasicBlock const*>, 8u>&, llvm::Pass*) + 1139
11  llc               0x0091eff0 (anonymous
namespace)::CodeGenPrepare::OptimizeBlock(llvm::BasicBlock&) + 228
12  llc               0x0091ff63 (anonymous
namespace)::CodeGenPrepare::runOnFunction(llvm::Function&) + 137
13  llc               0x00a846c3
llvm::FPPassManager::runOnFunction(llvm::Function&) + 297
14  llc               0x00a84bf6
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 112
15  llc               0x00a84dc2
llvm::FunctionPassManager::run(llvm::Function&) + 130
16  llc               0x000301d0 main + 3577
17  llc               0x0002ecc9 start + 53
Stack dump:
0.      Program arguments: /Users/bwilson/local/llvm/install/bin/llc
fftbench.llvm.bc 
1.      Running pass 'Optimize for code generation' on function '@main'


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