Teach LeaglizeDAG that i64 mul can be a libcall.
authorScott Michel <scottm@aero.org>
Mon, 29 Dec 2008 03:21:37 +0000 (03:21 +0000)
committerScott Michel <scottm@aero.org>
Mon, 29 Dec 2008 03:21:37 +0000 (03:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61463 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index d79f6bb1e1b3ce15c63efbef7fd704f8139dfd5c..2c0d9ddcc1cd4e72c171ad776ce79b553c7903be 100644 (file)
@@ -3281,6 +3281,8 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
       case ISD::MUL:
         if (VT == MVT::i32)
           LC = RTLIB::MUL_I32;
+       else if (VT == MVT::i64)
+          LC = RTLIB::MUL_I64;
         break;
       case ISD::FPOW:
         LC = GetFPLibCall(VT, RTLIB::POW_F32, RTLIB::POW_F64, RTLIB::POW_F80,