https://llvm.org/bugs/show_bug.cgi?id=28879
Bug ID: 28879 Summary: Assertion `CastInst::castIsValid(opc, C, Ty) && "Invalid constantexpr cast!" after r260711 Product: libraries Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Scalar Optimizations Assignee: unassignedb...@nondot.org Reporter: wolfgang_p...@playstation.sony.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified ; Running opt -gvn on the following module causes an assertion after ; r260711. Probably something to do with vector sizes < 1 byte. ; ModuleID = 'bugpoint-reduced-simplified.bc' ; Function Attrs: norecurse noreturn nounwind define void @autogen_SD106151532() #0 { BB: %A4 = alloca <7 x i1>, align 2 store <7 x i1> undef, <7 x i1>* %A4, align 2 br label %CF829.preheader.split62 CF829.preheader.split62: ; preds = %BB %0 = getelementptr inbounds <7 x i1>, <7 x i1>* %A4, i64 0, i64 0 %A4.0.A4.0.L865961 = load i1, i1* %0, align 2 br i1 %A4.0.A4.0.L865961, label %CF871.us.preheader, label %CF829.preheader CF829.preheader: ; preds = %CF829.preheader.split62 unreachable CF871.us.preheader: ; preds = %CF829.preheader.split62 unreachable } attributes #0 = { noreturn nounwind } opt: /home/user/src/llvm/trunk/llvm/lib/IR/Constants.cpp:1533: static llvm::Constant* llvm::ConstantExpr::getCast(unsigned int, llvm::Constant*, llvm::Type*, bool): Assertion `CastInst::castIsValid(opc, C, Ty) && "Invalid constantexpr cast!"' failed. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs