[LLVMbugs] [Bug 2030] New: loop index split tries to mangle PHIs

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Feb 13 19:35:11 PST 2008


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

           Summary: loop index split tries to mangle PHIs
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Loop Optimizer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: dpatel at apple.com, llvmbugs at cs.uiuc.edu


Created an attachment (id=1402)
 --> (http://llvm.org/bugs/attachment.cgi?id=1402)
testcase

Loop index splitting dies on this testcase:

$ opt b.bc -loop-index-split

opt: /usr/local/src/llvm/include/llvm/Instructions.h:1285: llvm::Value*
llvm::PHINode::getIncomingValue(unsigned int) const: Assertion `i*2 <
getNumOperands() && "Invalid value number!"' failed.

Program received signal SIGABRT, Aborted.
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x41e969a1 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0x41e982b9 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0x41e8ff51 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4  0x08397b95 in llvm::PHINode::getIncomingValue (this=0x8774a28, 
    i=4294967295) at /usr/local/src/llvm/include/llvm/Instructions.h:1285
#5  0x08397d25 in llvm::PHINode::getIncomingValueForBlock (this=0x8774a28, 
    BB=0x876f618) at /usr/local/src/llvm/include/llvm/Instructions.h:1349
#6  0x08457063 in (anonymous namespace)::LoopIndexSplit::splitLoop (
    this=0x876c050, SD=@0x876c090) at LoopIndexSplit.cpp:1468
#7  0x084581e3 in (anonymous namespace)::LoopIndexSplit::runOnLoop (
    this=0x876c050, IncomingLoop=0x877e028, LPM_Ref=@0x876cf60)
    at LoopIndexSplit.cpp:272
#8  0x08541d60 in llvm::LPPassManager::runOnFunction (this=0x876cf60, 
    F=@0x876d5f0) at LoopPass.cpp:225
#9  0x08610ad2 in llvm::FPPassManager::runOnFunction (this=0x876ee78, 
    F=@0x876d5f0) at PassManager.cpp:1184
#10 0x08610c82 in llvm::FPPassManager::runOnModule (this=0x876ee78, 
    M=@0x876bf98) at PassManager.cpp:1204
#11 0x0861079c in llvm::MPPassManager::runOnModule (this=0x876ca70, 
    M=@0x876bf98) at PassManager.cpp:1254
#12 0x08610956 in llvm::PassManagerImpl::run (this=0x876c298, M=@0x876bf98)
    at PassManager.cpp:1328
#13 0x086109aa in llvm::PassManager::run (this=0xffffd61c, M=@0x876bf98)
    at PassManager.cpp:1360
#14 0x08364959 in main (argc=3, argv=0xffffd804) at opt.cpp:426


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