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 | 54eed371314af403ef8307b386b3b5b46c8aa6fb (patch) | |
tree | c452eeb6231eff646277b4a68b9da96734e19c14 | |
parent | 23e1df8b8d1d1fc8b9a20b80a47b0a2fdffe7f84 (diff) | |
download | external_llvm-54eed371314af403ef8307b386b3b5b46c8aa6fb.zip external_llvm-54eed371314af403ef8307b386b3b5b46c8aa6fb.tar.gz external_llvm-54eed371314af403ef8307b386b3b5b46c8aa6fb.tar.bz2 |
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
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 371fbab..7dab5aa 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/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; |