1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

pass the address of MaskedValueIsZero into isMaskedValueZeroForTargetNode,

to permit recursion

llvm-svn: 25799
This commit is contained in:
Chris Lattner 2006-01-30 03:49:37 +00:00
parent 754bc1f46c
commit 26589d32e6

View File

@ -462,7 +462,7 @@ static bool MaskedValueIsZero(const SDOperand &Op, uint64_t Mask,
return (Mask & (MVT::getSizeInBits(Op.getValueType())*2-1)) == 0;
default:
if (Op.getOpcode() >= ISD::BUILTIN_OP_END)
return TLI.isMaskedValueZeroForTargetNode(Op, Mask);
return TLI.isMaskedValueZeroForTargetNode(Op, Mask, MaskedValueIsZero);
break;
}
return false;