projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f95670f
)
Allow undef in a shuffle mask
author
Chris Lattner
<sabre@nondot.org>
Fri, 14 Apr 2006 23:19:08 +0000
(23:19 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 14 Apr 2006 23:19:08 +0000
(23:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27714
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCISelLowering.cpp
b/lib/Target/PowerPC/PPCISelLowering.cpp
index 99d3a47683f74cf138e2cf5953c2cde41b51cacb..8fa5f84db53ccfd84574cc82ac425ae1f1aac556 100644
(file)
--- 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)