[x86] Refactor the element insertion logic in the new vector shuffle
authorChandler Carruth <chandlerc@gmail.com>
Fri, 3 Oct 2014 12:01:55 +0000 (12:01 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 3 Oct 2014 12:01:55 +0000 (12:01 +0000)
commit7ae6f2abf6c6ac1cd2ff03dc82f1e15138d95757
treee22f5f814f1425485c03f368bbbab2d13ec69c36
parent0cd2a891d8bf4cf8983b51db48584788d0f66eb8
[x86] Refactor the element insertion logic in the new vector shuffle
lowering to handle the potential mirroring of 2-element vectors (because
we can't reliably sort them one way) in the caller rather than in the
insertion logic.

This will simplify things considerably as more ways to fail to match the
insertion are added because now we have a nice try and retry point.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218980 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp