[x86] Tweak the ordering of unpack matching vs. element insertion, and
authorChandler Carruth <chandlerc@gmail.com>
Sun, 15 Feb 2015 12:01:14 +0000 (12:01 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 15 Feb 2015 12:01:14 +0000 (12:01 +0000)
commit23b34c287fedb3785c11f8e26113e747bab80387
tree0038acfaa4de432c42c36497c68c3c8bb5934b47
parent19cd7ccdf1f6ba75648406c726fc1cfab9072b88
[x86] Tweak the ordering of unpack matching vs. element insertion, and
don't try to do element insertion for non-zero-index floating point
vectors.

We don't have any useful patterns or lowering for element insertion into
high elements of a floating point vector, and the generic shuffle
lowering will end up being better -- namely it will fall back to unpck.
But we should try to handle other forms of element insertion before
matching unpck patterns.

While this doesn't matter much right now, I'm working on a patch that
makes unpck matching much more powerful, and that patch will break
without this re-ordering.

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