[llvm] TargetLibraryInfo: Assume no libcalls in the default constructor (PR #92400)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Thu May 16 07:47:56 PDT 2024


================
@@ -288,6 +288,8 @@ bool PlaceSafepointsPass::runImpl(Function &F, const TargetLibraryInfo &TLI) {
     // with for the moment.
     legacy::FunctionPassManager FPM(F.getParent());
     bool CanAssumeCallSafepoints = enableCallSafepoints(F);
+
+    FPM.add(new TargetLibraryInfoWrapperPass(TLI));
----------------
teresajohnson wrote:

I think this should probably be split out into a separate preparatory PR, since it is fixing an existing issue as a side effect exposed by the main change here  (iiuc previously too many builtins were available, which was caught by making none available by default).

https://github.com/llvm/llvm-project/pull/92400


More information about the llvm-commits mailing list