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)
commitf9393b341554f465fbd1b2daf536a1591a674a26
treecf22341738bf156bbd719b676cedbf7c3b092622
parent619bb43a50103a14f7b36f6e5edf9bb0385b2c82
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