summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-06 00:53:29 +0000
committerDan Gohman <gohman@apple.com>2008-05-06 00:53:29 +0000
commit54eed371314af403ef8307b386b3b5b46c8aa6fb (patch)
treec452eeb6231eff646277b4a68b9da96734e19c14 /lib
parent23e1df8b8d1d1fc8b9a20b80a47b0a2fdffe7f84 (diff)
downloadllvm-54eed371314af403ef8307b386b3b5b46c8aa6fb.tar.gz
llvm-54eed371314af403ef8307b386b3b5b46c8aa6fb.tar.bz2
llvm-54eed371314af403ef8307b386b3b5b46c8aa6fb.tar.xz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/TargetLowering.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 371fbab2b8..7dab5aa109 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;