summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/2012-03-15-build_vector_wl.ll
diff options
context:
space:
mode:
authorNadav Rotem <nadav.rotem@intel.com>2012-03-15 08:49:06 +0000
committerNadav Rotem <nadav.rotem@intel.com>2012-03-15 08:49:06 +0000
commit6fd1d32c635bfbf6f5fb53529857f1e43171adf1 (patch)
tree972f29307b9bd9b39b6212c314bdd599e430489f /llvm/test/CodeGen/X86/2012-03-15-build_vector_wl.ll
parent7dd54fb695564de4fcd914dc2432e5be3d44a591 (diff)
downloadbcm5719-llvm-6fd1d32c635bfbf6f5fb53529857f1e43171adf1.tar.gz
bcm5719-llvm-6fd1d32c635bfbf6f5fb53529857f1e43171adf1.zip
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.
llvm-svn: 152784
Diffstat (limited to 'llvm/test/CodeGen/X86/2012-03-15-build_vector_wl.ll')
-rw-r--r--llvm/test/CodeGen/X86/2012-03-15-build_vector_wl.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/2012-03-15-build_vector_wl.ll b/llvm/test/CodeGen/X86/2012-03-15-build_vector_wl.ll
new file mode 100644
index 00000000000..fec17e9f4ac
--- /dev/null
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud