Add a new function, ReplaceAllUsesOfValuesWith, which handles bulk
[oota-llvm.git] / lib / Target / X86 / X86ISelDAGToDAG.cpp
index e646d4d6a0111c2139ba52db42ff557979a09c4d..74100f8362a004dd6acc448bdae2c055463069de 100644 (file)
@@ -1159,7 +1159,7 @@ SDNode *X86DAGToDAGISel::Select(SDOperand N) {
   Indent += 2;
 #endif
 
-  if (Opcode >= ISD::BUILTIN_OP_END && Opcode < X86ISD::FIRST_NUMBER) {
+  if (Node->isMachineOpcode()) {
 #ifndef NDEBUG
     DOUT << std::string(Indent-2, ' ') << "== ";
     DEBUG(Node->dump(CurDAG));