diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-09-15 01:14:29 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-09-15 01:14:29 +0000 |
commit | c82751dd6761e3db62668b6b1cfddd4f659855b6 (patch) | |
tree | 7dfc93f730b3f9176ae6dc6cf0dff2d6f96b1250 /test | |
parent | b1afbac64b7c4c06959350acc175fb3552012f57 (diff) | |
download | external_llvm-c82751dd6761e3db62668b6b1cfddd4f659855b6.zip external_llvm-c82751dd6761e3db62668b6b1cfddd4f659855b6.tar.gz external_llvm-c82751dd6761e3db62668b6b1cfddd4f659855b6.tar.bz2 |
Make demanded-elt simplification for shufflevector slightly stronger. Spotted by inspection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/vec_demanded_elts.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/vec_demanded_elts.ll b/test/Transforms/InstCombine/vec_demanded_elts.ll index e0188fe..cc63371 100644 --- a/test/Transforms/InstCombine/vec_demanded_elts.ll +++ b/test/Transforms/InstCombine/vec_demanded_elts.ll @@ -152,3 +152,14 @@ entry: ret <4 x i32> %0 } declare <4 x i32> @llvm.x86.sse41.pmovzxwd(<8 x i16>) nounwind readnone + +define <4 x float> @dead_shuffle_elt(<4 x float> %x, <2 x float> %y) nounwind { +entry: +; CHECK: define <4 x float> @dead_shuffle_elt +; CHECK: shufflevector <2 x float> %y, <2 x float> undef, <4 x i32> <i32 0, i32 1, i32 undef, i32 undef> + %shuffle.i = shufflevector <2 x float> %y, <2 x float> %y, <4 x i32> <i32 0, i32 1, i32 0, i32 1> + %shuffle9.i = shufflevector <4 x float> %x, <4 x float> %shuffle.i, <4 x i32> <i32 4, i32 5, i32 2, i32 3> + ret <4 x float> %shuffle9.i +} + + |