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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs