[llvm] [InferAttrs] Mark errnomem-setting libcalls as such (PR #124742)
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 28 08:49:11 PST 2025
================
@@ -320,6 +357,7 @@ bool llvm::inferNonMandatoryLibFuncAttrs(Function &F,
Changed |= setWillReturn(F);
Changed |= setDoesNotCapture(F, 1);
Changed |= setOnlyReadsMemory(F, 0);
+ Changed |= setOnlyAccessesArgOrErrnoMem(F);
----------------
antoniofrighetto wrote:
I had deduced from your previous marking that locale should not be encompassed as inaccessible memory. Have I mistaken it?
https://github.com/llvm/llvm-project/pull/124742
More information about the llvm-commits
mailing list