diff options
| author | Filipe Cabecinhas <me@filcab.net> | 2014-05-30 23:03:11 +0000 |
|---|---|---|
| committer | Filipe Cabecinhas <me@filcab.net> | 2014-05-30 23:03:11 +0000 |
| commit | 82111f12fb0d36e329c09022da0f0b48034c6cd3 (patch) | |
| tree | 590769a209838a74d0a291747d9a56066830c7f5 /llvm/test/CodeGen/Generic | |
| parent | acfad8025008ae6cfea6174c547fbf48f6193666 (diff) | |
| download | bcm5719-llvm-82111f12fb0d36e329c09022da0f0b48034c6cd3.tar.gz bcm5719-llvm-82111f12fb0d36e329c09022da0f0b48034c6cd3.zip | |
Convert a vselect into a concat_vector if possible
Summary:
If both vector args to vselect are concat_vectors and the condition is
constant and picks half a vector from each argument, convert the vselect
into a concat_vectors.
Added a test.
The ConvertSelectToConcatVector is assuming it doesn't get vselects with
arguments of, for example, <undef, undef, true, true>. Those get taken
care of in the checks above its call.
Reviewers: nadav, delena, grosbach, hfinkel
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D3916
llvm-svn: 209929
Diffstat (limited to 'llvm/test/CodeGen/Generic')
| -rw-r--r-- | llvm/test/CodeGen/Generic/select.ll | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/Generic/select.ll b/llvm/test/CodeGen/Generic/select.ll index 77636eb6e61..c4841b79acb 100644 --- a/llvm/test/CodeGen/Generic/select.ll +++ b/llvm/test/CodeGen/Generic/select.ll @@ -192,4 +192,3 @@ define <1 x i32> @checkScalariseVSELECT(<1 x i32> %a, <1 x i32> %b) { %s = select <1 x i1> %cond, <1 x i32> %a, <1 x i32> %b ret <1 x i32> %s } - |

