[LLVMbugs] [Bug 20775] New: AArch64: crash in performSelectCombine()

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 27 12:18:07 PDT 2014


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

            Bug ID: 20775
           Summary: AArch64: crash in performSelectCombine()
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: grosbach at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

This optimization doesn't like v1i1 types.

target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
target triple = "arm64-apple-ios5.0.0"

define void @autogen_SD18027(i32) {
BB:
  %Cmp = icmp sge i32 121709, %0
  br label %CF80

CF80:                                             ; preds = %CF80, %BB
  br i1 undef, label %CF80, label %CF83

CF83:                                             ; preds = %CF83, %CF80
  %Sl70 = select i1 %Cmp, <1 x i1> undef, <1 x i1> zeroinitializer
  %E73 = extractelement <1 x i1> %Sl70, i32 0
  %brmerge = or i1 %E73, undef
  br i1 %brmerge, label %CF83, label %CF81

CF81:                                             ; preds = %CF83
  ret void
}

$ llc test.ll 
Assertion failed: (NumElements > 0 && "#Elements of a VectorType must be
greater than 0"), function get, file
/Users/grosbaj/sources/llvm/lib/IR/Type.cpp, line 710.

Found via llvm-stress.

-- 
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/20140827/a0050310/attachment.html>


More information about the llvm-bugs mailing list