projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9ace0cd
)
Teach LeaglizeDAG that i64 mul can be a libcall.
author
Scott Michel
<scottm@aero.org>
Mon, 29 Dec 2008 03:21:37 +0000
(
03:21
+0000)
committer
Scott 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index d79f6bb1e1b3ce15c63efbef7fd704f8139dfd5c..2c0d9ddcc1cd4e72c171ad776ce79b553c7903be 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@
-3281,6
+3281,8
@@
SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
case ISD::MUL:
if (VT == MVT::i32)
LC = RTLIB::MUL_I32;
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,
break;
case ISD::FPOW:
LC = GetFPLibCall(VT, RTLIB::POW_F32, RTLIB::POW_F64, RTLIB::POW_F80,