@@ -466,12 +466,9 @@ extern "C" void LLVMRustDisposeTargetMachine(LLVMTargetMachineRef TM) {
466466
467467// Unfortunately, the LLVM C API doesn't provide a way to create the
468468// TargetLibraryInfo pass, so we use this method to do so.
469- extern " C" void LLVMRustAddLibraryInfo (LLVMPassManagerRef PMR, LLVMModuleRef M,
470- bool DisableSimplifyLibCalls) {
469+ extern " C" void LLVMRustAddLibraryInfo (LLVMPassManagerRef PMR, LLVMModuleRef M) {
471470 Triple TargetTriple (unwrap (M)->getTargetTriple ());
472471 TargetLibraryInfoImpl TLII (TargetTriple);
473- if (DisableSimplifyLibCalls)
474- TLII.disableAllFunctions ();
475472 unwrap (PMR)->add (new TargetLibraryInfoWrapperPass (TLII));
476473}
477474
@@ -630,7 +627,7 @@ LLVMRustOptimize(
630627 bool IsLinkerPluginLTO,
631628 bool NoPrepopulatePasses, bool VerifyIR, bool UseThinLTOBuffers,
632629 bool MergeFunctions, bool UnrollLoops, bool SLPVectorize, bool LoopVectorize,
633- bool DisableSimplifyLibCalls, bool EmitLifetimeMarkers,
630+ bool EmitLifetimeMarkers,
634631 LLVMRustSanitizerOptions *SanitizerOptions,
635632 const char *PGOGenPath, const char *PGOUsePath,
636633 bool InstrumentCoverage, const char *InstrProfileOutput,
@@ -722,8 +719,6 @@ LLVMRustOptimize(
722719
723720 Triple TargetTriple (TheModule->getTargetTriple ());
724721 std::unique_ptr<TargetLibraryInfoImpl> TLII (new TargetLibraryInfoImpl (TargetTriple));
725- if (DisableSimplifyLibCalls)
726- TLII->disableAllFunctions ();
727722 FAM.registerPass ([&] { return TargetLibraryAnalysis (*TLII); });
728723
729724 PB.registerModuleAnalyses (MAM);
0 commit comments