@@ -535,12 +535,9 @@ extern "C" void LLVMRustDisposeTargetMachine(LLVMTargetMachineRef TM) {
535535
536536// Unfortunately, the LLVM C API doesn't provide a way to create the
537537// TargetLibraryInfo pass, so we use this method to do so.
538- extern " C" void LLVMRustAddLibraryInfo (LLVMPassManagerRef PMR , LLVMModuleRef M,
539- bool DisableSimplifyLibCalls) {
538+ extern " C" void LLVMRustAddLibraryInfo (LLVMPassManagerRef PMR , LLVMModuleRef M) {
540539 Triple TargetTriple (unwrap (M)->getTargetTriple ());
541540 TargetLibraryInfoImpl TLII (TargetTriple);
542- if (DisableSimplifyLibCalls)
543- TLII .disableAllFunctions ();
544541 unwrap (PMR )->add (new TargetLibraryInfoWrapperPass (TLII ));
545542}
546543
@@ -707,7 +704,7 @@ LLVMRustOptimize(
707704 bool IsLinkerPluginLTO,
708705 bool NoPrepopulatePasses, bool VerifyIR, bool UseThinLTOBuffers,
709706 bool MergeFunctions, bool UnrollLoops, bool SLPVectorize, bool LoopVectorize,
710- bool DisableSimplifyLibCalls, bool EmitLifetimeMarkers,
707+ bool EmitLifetimeMarkers,
711708 LLVMRustSanitizerOptions *SanitizerOptions,
712709 const char *PGOGenPath, const char *PGOUsePath,
713710 bool InstrumentCoverage, const char *InstrProfileOutput,
@@ -813,8 +810,6 @@ LLVMRustOptimize(
813810
814811 Triple TargetTriple (TheModule->getTargetTriple ());
815812 std::unique_ptr<TargetLibraryInfoImpl> TLII (new TargetLibraryInfoImpl (TargetTriple));
816- if (DisableSimplifyLibCalls)
817- TLII ->disableAllFunctions ();
818813 FAM .registerPass ([&] { return TargetLibraryAnalysis (*TLII ); });
819814
820815 PB .registerModuleAnalyses (MAM );
0 commit comments