@@ -12,9 +12,6 @@ using namespace llvm;
1212using namespace RTLIB ;
1313
1414void RuntimeLibcallsInfo::initSoftFloatCmpLibcallPredicates () {
15- std::fill (SoftFloatCompareLibcallPredicates,
16- SoftFloatCompareLibcallPredicates + RTLIB::UNKNOWN_LIBCALL,
17- CmpInst::BAD_ICMP_PREDICATE);
1815 SoftFloatCompareLibcallPredicates[RTLIB::OEQ_F32] = CmpInst::ICMP_EQ;
1916 SoftFloatCompareLibcallPredicates[RTLIB::OEQ_F64] = CmpInst::ICMP_EQ;
2017 SoftFloatCompareLibcallPredicates[RTLIB::OEQ_F128] = CmpInst::ICMP_EQ;
@@ -48,19 +45,12 @@ void RuntimeLibcallsInfo::initSoftFloatCmpLibcallPredicates() {
4845// / Set default libcall names. If a target wants to opt-out of a libcall it
4946// / should be placed here.
5047void RuntimeLibcallsInfo::initLibcalls (const Triple &TT) {
51- std::fill (std::begin (LibcallRoutineNames), std::end (LibcallRoutineNames),
52- nullptr );
53-
5448 initSoftFloatCmpLibcallPredicates ();
5549
5650#define HANDLE_LIBCALL (code, name ) setLibcallName(RTLIB::code, name);
5751#include " llvm/IR/RuntimeLibcalls.def"
5852#undef HANDLE_LIBCALL
5953
60- // Initialize calling conventions to their default.
61- for (int LC = 0 ; LC < RTLIB::UNKNOWN_LIBCALL; ++LC)
62- setLibcallCallingConv ((RTLIB::Libcall)LC, CallingConv::C);
63-
6454 // Use the f128 variants of math functions on x86
6555 if (TT.isX86 () && TT.isGNUEnvironment ()) {
6656 setLibcallName (RTLIB::REM_F128, " fmodf128" );
0 commit comments