[PowerPC] Don't always consider P8Altivec-only masks in LowerVECTOR_SHUFFLE
authorHal Finkel <hfinkel@anl.gov>
Wed, 2 Sep 2015 16:52:37 +0000 (16:52 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 2 Sep 2015 16:52:37 +0000 (16:52 +0000)
commit3fe476e178155cf1269cfbfc244f823663569804
treeda9312797a0055486e655961507ad2d4884b63f8
parentef8ad01b02bd6decc99f587bf800c58fb765384a
[PowerPC] Don't always consider P8Altivec-only masks in LowerVECTOR_SHUFFLE

LowerVECTOR_SHUFFLE needs to decide whether to pass a vector shuffle off to the
TableGen-generated matching code, and it does this by testing the same
predicates used by the TableGen files. Unfortunately, when we added new
P8Altivec-only predicates, we started universally testing them in
LowerVECTOR_SHUFFLE, and if then matched when targeting a system prior to a P8,
we'd end up with a selection failure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246675 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/p8altivec-shuffles-pred.ll [new file with mode: 0644]