[PATCH] D30123: [InstCombine] shrink truncated splat shuffle
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 16:22:26 PST 2017
spatel added a comment.
In https://reviews.llvm.org/D30123#693699, @efriedma wrote:
> LGTM, but you might want to look into the following...
>
> define <8 x i16> @wide_splat1(<8 x i32> %x) {
> %shuf = trunc <8 x i32> %x to <8 x i16>
> %trunc = shufflevector <8 x i16> %shuf, <8 x i16> undef, <8 x i32> <i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2>
> ret <8 x i16> %trunc
> }
Thanks for pointing it out. Filed as:
https://bugs.llvm.org/show_bug.cgi?id=32160
https://reviews.llvm.org/D30123
More information about the llvm-commits
mailing list