[llvm] 5b528a1 - RuntimeLibcalls: Remove darwin override of half convert libcalls (#148782)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 3 19:06:06 PDT 2025
Author: Matt Arsenault
Date: 2025-08-04T11:06:03+09:00
New Revision: 5b528a1041fb6b64e5722f1bc600eb0617118a3e
URL: https://github.com/llvm/llvm-project/commit/5b528a1041fb6b64e5722f1bc600eb0617118a3e
DIFF: https://github.com/llvm/llvm-project/commit/5b528a1041fb6b64e5722f1bc600eb0617118a3e.diff
LOG: RuntimeLibcalls: Remove darwin override of half convert libcalls (#148782)
These are already the default calls set for these conversions, so
they should not require explicit setting. The non-default cases are
currently overridden in ARMISelLowering. Just delete this until
the list of calls and lowering decisions are separated.
This was added back in 6402ad27c01c9503a12d41d7e40646cf0d1f919f. It
appears to not be relevant for AArch64, where calls appear to never
be used for these. It also appears to not be relevant for x86, where
the default calls seem to always end up used anyway.
Added:
Modified:
llvm/lib/IR/RuntimeLibcalls.cpp
Removed:
################################################################################
diff --git a/llvm/lib/IR/RuntimeLibcalls.cpp b/llvm/lib/IR/RuntimeLibcalls.cpp
index 8c90c52141dc7..5340f11e0c112 100644
--- a/llvm/lib/IR/RuntimeLibcalls.cpp
+++ b/llvm/lib/IR/RuntimeLibcalls.cpp
@@ -78,15 +78,6 @@ void RuntimeLibcallsInfo::initLibcalls(const Triple &TT,
setLibcallImpl(RTLIB::UNWIND_RESUME, RTLIB::_Unwind_SjLj_Resume);
}
- // A few names are
diff erent on particular architectures or environments.
- if (TT.isOSDarwin()) {
- // For f16/f32 conversions, Darwin uses the standard naming scheme,
- // instead of the gnueabi-style __gnu_*_ieee.
- // FIXME: What about other targets?
- setLibcallImpl(RTLIB::FPEXT_F16_F32, RTLIB::__extendhfsf2);
- setLibcallImpl(RTLIB::FPROUND_F32_F16, RTLIB::__truncsfhf2);
- }
-
if (TT.isOSOpenBSD()) {
setLibcallImpl(RTLIB::STACKPROTECTOR_CHECK_FAIL, RTLIB::Unsupported);
setLibcallImpl(RTLIB::STACK_SMASH_HANDLER, RTLIB::__stack_smash_handler);
More information about the llvm-commits
mailing list