OSDN Git Service

[x86] Generalize the single-element insertion lowering to work with
authorChandler Carruth <chandlerc@gmail.com>
Sat, 20 Sep 2014 03:32:25 +0000 (03:32 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 20 Sep 2014 03:32:25 +0000 (03:32 +0000)
commitcc62abbe39fdb019fcc71bd4937bb84ced0cd0ca
treeb4801280cf880b763368b85ec3c337edef4c998d
parent8924ed3db48b59882cf8924395095fa9ecf76ac0
[x86] Generalize the single-element insertion lowering to work with
floating point types and use it for both v2f64 and v2i64 single-element
insertion lowering.

This fixes the last non-AVX performance regression test case I've gotten
of for the new vector shuffle lowering. There is obvious analogous
lowering for v4f32 that I'll add in a follow-up patch (because with
INSERTPS, v4f32 requires special treatment). After that, its AVX stuff.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218175 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/vector-shuffle-128-v2.ll