diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-06 00:53:29 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-06 00:53:29 +0000 |
commit | 38dc08f36f14ae14bab7317511ad0d7f40983347 (patch) | |
tree | 5ad9d596f3d2bef12434792a3dde46003f45f68b /llvm/lib/CodeGen | |
parent | cf0e3acf164bc75f06c2483433e0e584d1545bea (diff) | |
download | bcm5719-llvm-38dc08f36f14ae14bab7317511ad0d7f40983347.tar.gz bcm5719-llvm-38dc08f36f14ae14bab7317511ad0d7f40983347.zip |
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.
llvm-svn: 50693
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 371fbab2b81..7dab5aa109f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -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; |