diff options
| author | Nick Desaulniers <ndesaulniers@google.com> | 2021-09-02 10:28:41 -0700 |
|---|---|---|
| committer | Nick Desaulniers <ndesaulniers@google.com> | 2021-09-02 10:41:37 -0700 |
| commit | 6860b136b9e14e7c5771b710bea7370d5020a94b (patch) | |
| tree | 1a4aa3a7161e61dce4fcace93116e5fb25cd0a10 /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp | |
| parent | 5c97507e2b67ee9194d7eb0a8162ec86ce12afc3 (diff) | |
[MipsISelLowering] avoid emitting libcalls to __multi3
Similar to D108842 and D108844.
__has_builtin(builtin_mul_overflow) returns true for 32b MIPS targets,
but Clang is deferring to compiler RT when encountering long long types.
This breaks MIPS malta_defconfig builds of the Linux kernel that are
using __builtin_mul_overflow with these types for these targets.
If the semantics of __has_builtin mean "the compiler resolves these,
always" then we shouldn't conditionally emit a libcall.
This will still need to be worked around in the Linux kernel in order to
continue to support malta_defconfig builds of the Linux kernel for this
target with older releases of clang.
Link: https://bugs.llvm.org/show_bug.cgi?id=28629
Link: https://github.com/ClangBuiltLinux/linux/issues/1438
Reviewed By: rengolin
Differential Revision: https://reviews.llvm.org/D108926
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp')
0 files changed, 0 insertions, 0 deletions
