[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Apr 14 16:19:20 PDT 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCISelLowering.cpp updated: 1.150 -> 1.151
---
Log message:
Allow undef in a shuffle mask
---
Diffs of the changes: (+1 -0)
PPCISelLowering.cpp | 1 +
1 files changed, 1 insertion(+)
Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.150 llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.151
--- llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.150 Fri Apr 14 01:01:58 2006
+++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp Fri Apr 14 18:19:08 2006
@@ -416,6 +416,7 @@
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)
More information about the llvm-commits
mailing list