[llvm-bugs] [Bug 28879] New: Assertion `CastInst::castIsValid(opc, C, Ty) && "Invalid constantexpr cast!" after r260711

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 5 17:12:38 PDT 2016


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: unassignedbugs at nondot.org
          Reporter: Wolfgang_Pieb at playstation.sony.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160806/10065b50/attachment.html>


More information about the llvm-bugs mailing list