pass the address of MaskedValueIsZero into isMaskedValueZeroForTargetNode,

to permit recursion


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-01-30 03:49:37 +00:00
parent 87c890a9c2
commit 5c413bc451

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;