diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-12-09 17:49:14 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-12-09 17:49:14 +0000 |
commit | 38d8ed2b75122ed9b222012b0aec8ceb378599d8 (patch) | |
tree | 0b2cf374c00a93440241690de4e48000fa4bc862 /llvm/lib/CodeGen/SelectionDAG | |
parent | 52facf0195a16d82985b6025058be61eb1d85db9 (diff) | |
download | bcm5719-llvm-38d8ed2b75122ed9b222012b0aec8ceb378599d8.tar.gz bcm5719-llvm-38d8ed2b75122ed9b222012b0aec8ceb378599d8.zip |
AMDGPU: Fix i128 mul
llvm-svn: 289231
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp index 9d07371db96..1a92d4a8b59 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp @@ -2205,7 +2205,7 @@ void DAGTypeLegalizer::ExpandIntRes_MUL(SDNode *N, else if (VT == MVT::i128) LC = RTLIB::MUL_I128; - if (LC == RTLIB::UNKNOWN_LIBCALL) { + if (LC == RTLIB::UNKNOWN_LIBCALL || !TLI.getLibcallName(LC)) { // We'll expand the multiplication by brute force because we have no other // options. This is a trivially-generalized version of the code from // Hacker's Delight (itself derived from Knuth's Algorithm M from section |