[llvm-commits] [llvm] r82942 - /llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
Dan Gohman
gohman at apple.com
Sun Sep 27 16:17:47 PDT 2009
Author: djg
Date: Sun Sep 27 18:17:47 2009
New Revision: 82942
URL: http://llvm.org/viewvc/llvm-project?rev=82942&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp?rev=82942&r1=82941&r2=82942&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp Sun Sep 27 18:17:47 2009
@@ -5116,7 +5116,7 @@
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;
}
More information about the llvm-commits
mailing list