Separate the check for blend shuffle_vector masks
authorFilipe Cabecinhas <me@filcab.net>
Fri, 30 May 2014 21:31:21 +0000 (21:31 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Fri, 30 May 2014 21:31:21 +0000 (21:31 +0000)
commit94141a42ed5099ee228a28ce4e4b2ac97f84bb12
tree72c81411328dd22763f5c6921d3e156ab3b4cfa9
parent6126c5578278a2ca76411405b3cdf13f3990873f
Separate the check for blend shuffle_vector masks

Summary:
Separate the check for blend shuffle_vector masks into isBlendMask.
This function will also be used to check if a vector shuffle is legal. No
change in functionality was intended, but we ended up improving codegen on
two tests, which were being (more) optimized only if the resulting shuffle
was legal.

Reviewers: nadav, delena, andreadb

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D3964

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209923 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/combine-or.ll