Instead of enumerating each opcode that isn't handled that

ComputeMaskedBits handles, just use a 'default:'. This avoids
TargetLowering's list getting out of date with SelectionDAG's.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50693 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-05-06 00:53:29 +00:00
parent 23e1df8b8d
commit 54eed37131

View File

@ -979,17 +979,7 @@ bool TargetLowering::SimplifyDemandedBits(SDOperand Op,
}
#endif
break;
case ISD::ADD:
case ISD::SUB:
case ISD::INTRINSIC_WO_CHAIN:
case ISD::INTRINSIC_W_CHAIN:
case ISD::INTRINSIC_VOID:
case ISD::CTTZ:
case ISD::CTLZ:
case ISD::CTPOP:
case ISD::LOAD:
case ISD::SETCC:
case ISD::FGETSIGN:
default:
// Just use ComputeMaskedBits to compute output bits.
TLO.DAG.ComputeMaskedBits(Op, NewMask, KnownZero, KnownOne, Depth);
break;