================
----------------
wangleiat wrote:
Could we add the following check to handle undef elements:
```
if (Elt.isUndef())
continue;
```
For example:
```
define void @undef(ptr %a, ptr %r) nounwind {
entry:
%0 = load <32 x i8>, ptr %a
%1 = shufflevector <32 x i8> %0, <32 x i8> poison,
<16 x i32> <i32 8, i32 9, i32 10, i32 11, i32 12, i32 13,
i32 14, i32 33,
i32 24, i32 25, i32 26, i32 27, i32 28, i32 29,
i32 30, i32 33>
%2 = sext <16 x i8> %1 to <16 x i16>
store <16 x i16> %2, ptr %r
ret void
}
```
https://github.com/llvm/llvm-project/pull/207316
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits