Skip to content

Commit b5bbf7f

Browse files
committed
RuntimeLibcalls: Remove darwin override of half convert libcalls
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 6402ad2. 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.
1 parent f5462a6 commit b5bbf7f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

llvm/lib/IR/RuntimeLibcalls.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ void RuntimeLibcallsInfo::initLibcalls(const Triple &TT,
7777
setLibcallImpl(RTLIB::UNWIND_RESUME, RTLIB::_Unwind_SjLj_Resume);
7878
}
7979

80-
// A few names are different on particular architectures or environments.
81-
if (TT.isOSDarwin()) {
82-
// For f16/f32 conversions, Darwin uses the standard naming scheme,
83-
// instead of the gnueabi-style __gnu_*_ieee.
84-
// FIXME: What about other targets?
85-
setLibcallImpl(RTLIB::FPEXT_F16_F32, RTLIB::__extendhfsf2);
86-
setLibcallImpl(RTLIB::FPROUND_F32_F16, RTLIB::__truncsfhf2);
87-
}
88-
8980
if (TT.isOSOpenBSD()) {
9081
setLibcallImpl(RTLIB::STACKPROTECTOR_CHECK_FAIL, RTLIB::Unsupported);
9182
}

0 commit comments

Comments
 (0)