OSDN Git Service

[SelectionDAG] Remove ISD::ADDC/ADDE from some undef handling code in getNode. NFCI
authorCraig Topper <craig.topper@intel.com>
Sat, 8 Dec 2018 00:27:34 +0000 (00:27 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 8 Dec 2018 00:27:34 +0000 (00:27 +0000)
These nodes should have two results. A real VT and a Glue. But this code would have returned Undef which would only be a single result. But we're in the single result version of getNode so these opcodes should never be seen by this function anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348670 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 7e9c5de..9b43f13 100644 (file)
@@ -4994,8 +4994,6 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
         return getConstant(0, DL, VT);
       LLVM_FALLTHROUGH;
     case ISD::ADD:
-    case ISD::ADDC:
-    case ISD::ADDE:
     case ISD::SUB:
     case ISD::UDIV:
     case ISD::SDIV: