Instead of enumerating each opcode that isn't handled that
authorDan Gohman <gohman@apple.com>
Tue, 6 May 2008 00:53:29 +0000 (00:53 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 6 May 2008 00:53:29 +0000 (00:53 +0000)
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

lib/CodeGen/SelectionDAG/TargetLowering.cpp

index 371fbab2b817ec79bb8c2bbb22ecf6f644626de2..7dab5aa109fe31b4fdceabbbafa53ec4ed7fafc8 100644 (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;