Some of us cared about the the promote path
authorAndrew Lenharth <andrewl@lenharth.org>
Mon, 29 Aug 2005 20:46:51 +0000 (20:46 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Mon, 29 Aug 2005 20:46:51 +0000 (20:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23130 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index 6ff7bccd61aacd24b57d45cb22bbbbd361e1f312..695ae23777df2d32400c9ad4035210cedb79cb1a 100644 (file)
@@ -1266,6 +1266,10 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
     default: 
       assert(0 && "Cannot handle this action for SETCC yet!");
       break;
+    case TargetLowering::Promote:
+      Result = DAG.getNode(ISD::SETCC, Node->getValueType(0), Tmp1, Tmp2,
+                           Node->getOperand(2));
+      break;
     case TargetLowering::Legal:
       if (Tmp1 != Node->getOperand(0) || Tmp2 != Node->getOperand(1))
         Result = DAG.getNode(ISD::SETCC, Node->getValueType(0), Tmp1, Tmp2,