diff options
author | Nadav Rotem <nadav.rotem@intel.com> | 2012-03-15 08:49:06 +0000 |
---|---|---|
committer | Nadav Rotem <nadav.rotem@intel.com> | 2012-03-15 08:49:06 +0000 |
commit | 6431ff96be8f2f7bf3428fdaa3ad4d30bf2c1db3 (patch) | |
tree | a8601a415f0a496c191a63fd191c92c77860f11e /test | |
parent | 8d101c31d293bcb8ece8fecdb3325cd0728bed08 (diff) | |
download | external_llvm-6431ff96be8f2f7bf3428fdaa3ad4d30bf2c1db3.zip external_llvm-6431ff96be8f2f7bf3428fdaa3ad4d30bf2c1db3.tar.gz external_llvm-6431ff96be8f2f7bf3428fdaa3ad4d30bf2c1db3.tar.bz2 |
When optimizing certain BUILD_VECTOR nodes into other BUILD_VECTOR nodes, add the new node into the work list because there is a potential for further optimizations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/2012-03-15-build_vector_wl.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2012-03-15-build_vector_wl.ll b/test/CodeGen/X86/2012-03-15-build_vector_wl.ll new file mode 100644 index 0000000..fec17e9 --- /dev/null +++ b/test/CodeGen/X86/2012-03-15-build_vector_wl.ll @@ -0,0 +1,10 @@ + +; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s +; CHECK: build_vector_again +define <4 x i8> @build_vector_again(<16 x i8> %in) nounwind readnone { +entry: + %out = shufflevector <16 x i8> %in, <16 x i8> undef, <4 x i32> <i32 0, i32 1, i32 2, i32 3> +; CHECK: shufb + ret <4 x i8> %out +; CHECK: ret +} |