[LLVMbugs] [Bug 23113] New: [instcombine] crash with (Assertion `SrcElemBitWidth && "vector elements must have a bitwidth"' failed)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 3 02:43:17 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23113

            Bug ID: 23113
           Summary: [instcombine] crash with (Assertion `SrcElemBitWidth
                    && "vector elements must have a bitwidth"' failed)
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: Hao.Liu at arm.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 14143
  --> https://llvm.org/bugs/attachment.cgi?id=14143&action=edit
patch to fix the instcombine crash on pointer vector

The instcombine came across an assertion failure in when visiting shufflevector
and checking if the shuffle extracting from LHS as follows:
   llvm::Instruction*
llvm::InstCombiner::visitShuffleVectorInst(llvm::ShuffleVectorInst&): 
Assertion `SrcElemBitWidth && "vector elements must have a bitwidth"' failed.

The root cause is getPrimitiveSizeInBits returns 0 for pointer vector. So I
created a patch to disable such check for pointer vectors.

-- 
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/20150403/a6da597c/attachment.html>


More information about the llvm-bugs mailing list