mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 23:20:41 +00:00
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
This commit is contained in:
parent
2a85cfd972
commit
cd2dd6b7e6
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user