[llvm-commits] [llvm] r61463 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Scott Michel
scottm at aero.org
Sun Dec 28 19:21:38 PST 2008
Author: pingbak
Date: Sun Dec 28 21:21:37 2008
New Revision: 61463
URL: http://llvm.org/viewvc/llvm-project?rev=61463&view=rev
Log:
Teach LeaglizeDAG that i64 mul can be a libcall.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=61463&r1=61462&r2=61463&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Sun Dec 28 21:21:37 2008
@@ -3281,6 +3281,8 @@
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,
More information about the llvm-commits
mailing list