[PATCH] D125285: [BuildLibCalls] infer inreg param attrs from NumRegisterParameters
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 10 13:33:07 PDT 2022
efriedma added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/simplify-libcalls-inreg.ll:47
+
+; CHECK: declare noundef i32 @sprintf(ptr inreg noalias nocapture noundef writeonly, ptr inreg nocapture noundef readonly, ...)
+; CHECK-NOT: declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...)
----------------
Is this inreg marking correct for sprintf?
Looking at clang output, we actually add inreg markings, but the backend ignores them. I guess if we do the same thing, that's fine?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125285/new/
https://reviews.llvm.org/D125285
More information about the llvm-commits
mailing list