[LLVMbugs] [Bug 1905] New: instcombine crash in targetdata on vector

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jan 10 20:48:46 PST 2008


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

           Summary: instcombine crash in targetdata on vector
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: llvmbugs at cs.uiuc.edu


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

$ llvm-commit/Debug/bin/opt -instcombine b.bc -disable-output
opt: TargetData.cpp:302: unsigned int
llvm::TargetData::getAlignmentInfo(llvm::AlignTypeEnum, uint32_t, bool) const:
Assertion `BestMatchIdx != -1 && "Didn't find alignment info for this
datatype!"' failed.
llvm-commit/Debug/bin/opt[0x85e6b2a]
llvm-commit/Debug/bin/opt[0x85e6df0]
[0xffffe500]
Aborted

(gdb) bt
#0  0xffffe405 in __kernel_vsyscall ()
#1  0xf7caceb5 in raise () from /lib/i686/cmov/libc.so.6
#2  0xf7cae831 in abort () from /lib/i686/cmov/libc.so.6
#3  0xf7ca608e in __assert_fail () from /lib/i686/cmov/libc.so.6
#4  0x084ec7ac in llvm::TargetData::getAlignmentInfo (this=0x86dc180, 
    AlignType=llvm::VECTOR_ALIGN, BitWidth=32, ABIInfo=true)
    at TargetData.cpp:302
#5  0x084ed572 in llvm::TargetData::getAlignment (this=0x86dc180, 
    Ty=0x86dd040, abi_or_pref=true) at TargetData.cpp:508
#6  0x084ed6ee in llvm::TargetData::getABITypeAlignment (this=0x86dc180, 
    Ty=0x86dd040) at TargetData.cpp:512
#7  0x083ae2dd in PromoteCastOfAllocation (this=0x86dec00, CI=@0x86debc0, 
    AI=@0x86decd8) at InstructionCombining.cpp:6386
#8  0x083bcd0c in visitBitCast (this=0x86dec00, CI=@0x86debc0)
    at InstructionCombining.cpp:7237
#9  0x083c75bc in visit (this=0x86dec00, I=@0x86debc0)
    at /home/nicholas/llvm-commit/include/llvm/Instruction.def:151
#10 0x083c7ce7 in DoOneIteration (this=0x86dec00, F=@0x86e0240, Iteration=0)
    at InstructionCombining.cpp:10603
#11 0x083c7fd0 in runOnFunction (this=0x86dec00, F=@0x86e0240)
    at InstructionCombining.cpp:10681
#12 0x08579052 in llvm::FPPassManager::runOnFunction (this=0x86d9fd0, 
    F=@0x86e0240) at PassManager.cpp:1171
---Type <return> to continue, or q <return> to quit---
#13 0x085791f4 in llvm::FPPassManager::runOnModule (this=0x86d9fd0, 
    M=@0x86da870) at PassManager.cpp:1191
#14 0x08578d28 in llvm::MPPassManager::runOnModule (this=0x86dc0e8, 
    M=@0x86da870) at PassManager.cpp:1240
#15 0x08578ee0 in llvm::PassManagerImpl::run (this=0x86df9c0, M=@0x86da870)
    at PassManager.cpp:1313
#16 0x08578f32 in llvm::PassManager::run (this=0xffe93d58, M=@0x86da870)
    at PassManager.cpp:1345
#17 0x082e425b in main (argc=4, argv=0xffe93f54) at opt.cpp:428


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