forked from OSchip/llvm-project
[DAG] computeKnownBits - move UDIV handling to same place as UREM/SREM. NFC.
This commit is contained in:
parent
5ec47c6dc5
commit
26ce33706f
|
@ -3222,12 +3222,6 @@ KnownBits SelectionDAG::computeKnownBits(SDValue Op, const APInt &DemandedElts,
|
|||
Known = KnownBits::mulhs(Known, Known2);
|
||||
break;
|
||||
}
|
||||
case ISD::UDIV: {
|
||||
Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
|
||||
Known2 = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
|
||||
Known = KnownBits::udiv(Known, Known2);
|
||||
break;
|
||||
}
|
||||
case ISD::AVGCEILU: {
|
||||
Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
|
||||
Known2 = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
|
||||
|
@ -3573,6 +3567,12 @@ KnownBits SelectionDAG::computeKnownBits(SDValue Op, const APInt &DemandedElts,
|
|||
Known = KnownBits::computeForAddCarry(Known, Known2, Carry);
|
||||
break;
|
||||
}
|
||||
case ISD::UDIV: {
|
||||
Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
|
||||
Known2 = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
|
||||
Known = KnownBits::udiv(Known, Known2);
|
||||
break;
|
||||
}
|
||||
case ISD::SREM: {
|
||||
Known = computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1);
|
||||
Known2 = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
|
||||
|
|
Loading…
Reference in New Issue