OSDN Git Service

Use movaps / movd to extract vector element 0 even with sse4.1. It's still cheaper...
authorEvan Cheng <evan.cheng@apple.com>
Fri, 2 Jan 2009 05:29:08 +0000 (05:29 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 2 Jan 2009 05:29:08 +0000 (05:29 +0000)
commit52ceafa5c7f86de19c8a98d9686e213a2985c061
treecf22341738bf156bbd719b676cedbf7c3b092622
parentccc776fd83b4d200f54cd84af71888e9a740f8fd
Use movaps / movd to extract vector element 0 even with sse4.1. It's still cheaper than pextrw especially if the value is in memory.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61555 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/vec_extract.ll
test/CodeGen/X86/vec_insert-2.ll
test/CodeGen/X86/vec_insert-3.ll
test/CodeGen/X86/vec_insert.ll
test/CodeGen/X86/vec_shuffle-12.ll
test/CodeGen/X86/vec_shuffle-28.ll
test/CodeGen/X86/widen_arith-1.ll