If a target doesn't have HasMULHU or HasUMUL_LOHI, ExpandOp would return
authorChris Lattner <sabre@nondot.org>
Sun, 14 Oct 2007 18:35:05 +0000 (18:35 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 Oct 2007 18:35:05 +0000 (18:35 +0000)
without lo/hi set.  Fall through to making a libcall instead.

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

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index b54af7d2a1cf5ef4634eb7cce19268e0c894c523..2396d792dda3a63ed72ef8dd376433b3fc02b267 100644 (file)
@@ -5870,7 +5870,6 @@ void SelectionDAGLegalize::ExpandOp(SDOperand Op, SDOperand &Lo, SDOperand &Hi){
           Hi = DAG.getNode(ISD::MULHU, NVT, LL, RL);
           break;
         }
-        break;
       }
       if (LHSSB > BitSize && RHSSB > BitSize) {
         // The input values are both sign-extended.