[SelectionDAG] Increment computeKnownBits recursion depth for SMIN/SMAX/UMIN/UMAX like all other ops

llvm-svn: 285397
This commit is contained in:
Simon Pilgrim 2016-10-28 13:13:16 +00:00
parent 1777237add
commit 8ba1e1dccc

View File

@ -2467,8 +2467,8 @@ void SelectionDAG::computeKnownBits(SDValue Op, APInt &KnownZero,
case ISD::UMAX: {
APInt Op0Zero, Op0One;
APInt Op1Zero, Op1One;
computeKnownBits(Op.getOperand(0), Op0Zero, Op0One, Depth);
computeKnownBits(Op.getOperand(1), Op1Zero, Op1One, Depth);
computeKnownBits(Op.getOperand(0), Op0Zero, Op0One, Depth+1);
computeKnownBits(Op.getOperand(1), Op1Zero, Op1One, Depth+1);
KnownZero = Op0Zero & Op1Zero;
KnownOne = Op0One & Op1One;