diff options
author | Chris Lattner <sabre@nondot.org> | 2006-04-14 23:19:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-04-14 23:19:08 +0000 |
commit | b097aa9353121cf6713408402022b8843a0f6acc (patch) | |
tree | bb09802ebfd5dfb5e90cd01da2b4f4df7a3c4dfb /lib/Target | |
parent | f95670f6fc29c0b103428265a8c594d6b8871083 (diff) | |
download | external_llvm-b097aa9353121cf6713408402022b8843a0f6acc.zip external_llvm-b097aa9353121cf6713408402022b8843a0f6acc.tar.gz external_llvm-b097aa9353121cf6713408402022b8843a0f6acc.tar.bz2 |
Allow undef in a shuffle mask
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 99d3a47..8fa5f84 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -416,6 +416,7 @@ bool PPC::isSplatShuffleMask(SDNode *N, unsigned EltSize) { assert(isa<ConstantSDNode>(Elt) && "Invalid VECTOR_SHUFFLE mask!"); for (unsigned i = EltSize, e = 16; i != e; i += EltSize) { + if (N->getOperand(i).getOpcode() == ISD::UNDEF) continue; assert(isa<ConstantSDNode>(N->getOperand(i)) && "Invalid VECTOR_SHUFFLE mask!"); for (unsigned j = 0; j != EltSize; ++j) |