summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-27 23:17:47 +0000
committerDan Gohman <gohman@apple.com>2009-09-27 23:17:47 +0000
commita5fc03562f143c5e44e5190cd0f3f3949988810f (patch)
treeab072891413d209eb8abbb0b19b1ecd5eb983200
parentdf5f681525afba7eca981b180d89194611377ee9 (diff)
downloadbcm5719-llvm-a5fc03562f143c5e44e5190cd0f3f3949988810f.tar.gz
bcm5719-llvm-a5fc03562f143c5e44e5190cd0f3f3949988810f.zip
LBRX no longer has an explicit SrcValueSDNode operand, so the type
operand is now at index 2, rather than 3. This fixes the "Invalid child # of SDNode!" failures on PowerPC. llvm-svn: 82942
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 63d6665953f..3920b381509 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -5116,7 +5116,7 @@ void PPCTargetLowering::computeMaskedBitsForTargetNode(const SDValue Op,
default: break;
case PPCISD::LBRX: {
// lhbrx is known to have the top bits cleared out.
- if (cast<VTSDNode>(Op.getOperand(3))->getVT() == MVT::i16)
+ if (cast<VTSDNode>(Op.getOperand(2))->getVT() == MVT::i16)
KnownZero = 0xFFFF0000;
break;
}
OpenPOWER on IntegriCloud