Skip to content

Commit 0b21d22

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 5843fba commit 0b21d22

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
@@ -78,15 +78,6 @@ void RuntimeLibcallsInfo::initLibcalls(const Triple &TT,
7878
setLibcallImpl(RTLIB::UNWIND_RESUME, RTLIB::_Unwind_SjLj_Resume);
7979
}
8080

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

0 commit comments

Comments
 (0)