[LLVMbugs] [Bug 336] NEW: The instcombine pass asserts when visiting load instruction

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri May 7 08:28:55 PDT 2004


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=336

           Summary: The instcombine pass asserts when visiting load
                    instruction
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: criswell at uiuc.edu


The instcombine pass hits the following assertion on the attached bytecode:

% opt -instcombine file.bc -f -o null.bc
opt: /home/vadve/criswell/llvm/lib/Target/TargetData.cpp:152: void
getTypeInfo(const llvm::Type*, const llvm::TargetData*, uint64_t&, unsigned
char&): Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is
unsized!"' failed.
opt[0x861c91a]
opt[0x861cb3a]
opt[0x42029188]
opt(abort+0x16e)[0x4202a8c2]
opt[0x42022ecb]
opt[0x865060e]
opt(llvm::TargetData::getTypeSize(llvm::Type const*) const+0x26)[0x865085c]
opt((anonymous
namespace)::InstCombiner::visitLoadInst(llvm::LoadInst&)+0x285)[0x841cc27]
opt(llvm::InstVisitor<(anonymous namespace)::InstCombiner,
llvm::Instruction*>::visitLoad(llvm::LoadInst&)+0x1b)[0x8450a91]
opt(llvm::InstVisitor<(anonymous namespace)::InstCombiner,
llvm::Instruction*>::visit(llvm::Instruction&)+0x30a)[0x84506cc]
opt((anonymous
namespace)::InstCombiner::runOnFunction(llvm::Function&)+0x28a)[0x841d504]
opt(llvm::PassManagerTraits<llvm::Function>::runPass(llvm::FunctionPass*,
llvm::Function*)+0x1f)[0x85f4ef9]
opt(llvm::PassManagerT<llvm::Function>::runOnUnit(llvm::Function*)+0x5e1)[0x85eb11d]
opt(llvm::PassManagerTraits<llvm::Function>::runOnFunction(llvm::Function&)+0x1f)[0x85ebcf1]
opt(llvm::FunctionPass::run(llvm::Module&)+0xa7)[0x85a8f07]
opt(llvm::PassManagerTraits<llvm::Module>::runPass(llvm::Pass*,
llvm::Module*)+0x1f)[0x85f4f8f]
opt(llvm::PassManagerT<llvm::Module>::runOnUnit(llvm::Module*)+0x5e1)[0x85e927d]
opt(llvm::PassManagerTraits<llvm::Module>::run(llvm::Module&)+0x1f)[0x85ea91f]
opt(llvm::PassManager::run(llvm::Module&)+0x23)[0x85a83cb]
opt(main+0x87f)[0x83a5d3f]
opt(__libc_start_main+0x95)[0x42017589]
opt(std::basic_ostream<char, std::char_traits<char> >& std::operator<<
<std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&,
char)+0x59)[0x83a5411]
Abort (core dumped)



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list