From: Dan Gohman Date: Fri, 5 Oct 2007 14:17:22 +0000 (+0000) Subject: Legalize support for MUL_LOHI and DIVREM. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e14ea867449cffa9a5835bc62c9c557ab0bc6618;p=oota-llvm.git Legalize support for MUL_LOHI and DIVREM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42636 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 63a25796f2e..e0f2f7a9456 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -2630,6 +2630,16 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { } break; + case ISD::SMUL_LOHI: + case ISD::UMUL_LOHI: + case ISD::SDIVREM: + case ISD::UDIVREM: + // These nodes will only be produced by target-specific lowering, so + // they shouldn't be here if they aren't legal. + assert(TLI.isOperationLegal(Node->getValueType(0), Node->getValueType(0)) && + "This must be legal!"); + break; + case ISD::FCOPYSIGN: // FCOPYSIGN does not require LHS/RHS to match type! Tmp1 = LegalizeOp(Node->getOperand(0)); // LHS switch (getTypeAction(Node->getOperand(1).getValueType())) {