From 409bf46742e2f38b2f4cec53c86b109bed42840d Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Mon, 18 May 2009 19:25:54 +0000 Subject: [PATCH] Remove an unused builtin. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72033 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/X86Builtins.def | 1 - lib/CodeGen/CGBuiltin.cpp | 4 ---- test/CodeGen/builtins-x86.c | 1 - 3 files changed, 6 deletions(-) diff --git a/include/clang/AST/X86Builtins.def b/include/clang/AST/X86Builtins.def index fdfead5945..710efa8cee 100644 --- a/include/clang/AST/X86Builtins.def +++ b/include/clang/AST/X86Builtins.def @@ -385,7 +385,6 @@ BUILTIN(__builtin_ia32_vec_set_v4si, "V4iV4iii", "") BUILTIN(__builtin_ia32_vec_set_v2di, "V2LLiV2LLiLLii", "") BUILTIN(__builtin_ia32_insertps128, "V4fV4fV4fi", "") -BUILTIN(__builtin_ia32_movqv4si, "V4iV4i", "") BUILTIN(__builtin_ia32_loadlv4si, "V4iV2i*", "") BUILTIN(__builtin_ia32_storelv4si, "vV2i*V2LLi", "") diff --git a/lib/CodeGen/CGBuiltin.cpp b/lib/CodeGen/CGBuiltin.cpp index bb0d59acf6..b316d45004 100644 --- a/lib/CodeGen/CGBuiltin.cpp +++ b/lib/CodeGen/CGBuiltin.cpp @@ -883,10 +883,6 @@ Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID, return EmitShuffleVector(Ops[0], Ops[1], 0, 2, "unpcklpd"); case X86::BI__builtin_ia32_movsd: return EmitShuffleVector(Ops[0], Ops[1], 2, 1, "movsd"); - case X86::BI__builtin_ia32_movqv4si: { - llvm::Type *Ty = llvm::VectorType::get(llvm::Type::Int64Ty, 2); - return Builder.CreateBitCast(Ops[0], Ty); - } case X86::BI__builtin_ia32_loadlps: case X86::BI__builtin_ia32_loadhps: { // FIXME: This should probably be represented as diff --git a/test/CodeGen/builtins-x86.c b/test/CodeGen/builtins-x86.c index d710b07dea..33ab36074f 100644 --- a/test/CodeGen/builtins-x86.c +++ b/test/CodeGen/builtins-x86.c @@ -476,7 +476,6 @@ void f0() { tmp_i = __builtin_ia32_vec_ext_v2si(tmp_V2i, imm_i_0_2); tmp_V8s = __builtin_ia32_vec_set_v8hi(tmp_V8s, tmp_s, imm_i_0_8); tmp_V4s = __builtin_ia32_vec_set_v4hi(tmp_V4s, tmp_s, imm_i_0_4); - tmp_V4i = __builtin_ia32_movqv4si(tmp_V4i); tmp_V4i = __builtin_ia32_loadlv4si(tmp_V2ip); (void) __builtin_ia32_storelv4si(tmp_V2ip, tmp_V2LLi); #ifdef USE_SSE4