[llvm] [InferAttrs] Mark errnomem-setting libcalls as such (PR #124742)

Antonio Frighetto via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 17 11:27:09 PST 2025


================
@@ -353,6 +379,7 @@ bool llvm::inferNonMandatoryLibFuncAttrs(Function &F,
     Changed |= setDoesNotCapture(F, 0);
     Changed |= setDoesNotCapture(F, 1);
     Changed |= setOnlyReadsMemory(F, 1);
+    Changed |= setOnlyAccessesArgMemOrErrnoMem(F);
----------------
antoniofrighetto wrote:

Right, adding locale-sensitive routines as well. IIUC this should be set as inaccessiblemem: read as they do not change locale.

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


More information about the llvm-commits mailing list