From 6fd1d32c635bfbf6f5fb53529857f1e43171adf1 Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Thu, 15 Mar 2012 08:49:06 +0000 Subject: 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 --- llvm/test/CodeGen/X86/2012-03-15-build_vector_wl.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 llvm/test/CodeGen/X86/2012-03-15-build_vector_wl.ll (limited to 'llvm/test') 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> +; CHECK: shufb + ret <4 x i8> %out +; CHECK: ret +} -- cgit v1.2.3