[PATCH] D126385: [msan] Implement -msan-pass-caller-to-runtime.
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 27 11:08:40 PDT 2022
vitalybuka added a comment.
Do you have estimate of how often this happend? How many different instrumented functions which can be called from uninstrumented code?
================
Comment at: llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp:1274
+ Intrinsic::getDeclaration(F.getParent(), Intrinsic::returnaddress),
+ IRB.getInt32(0));
+ ContextState = IRB.CreateCall(MS.MsanGetContextStateFn, RetAddr);
----------------
Can you avoid ClPassCallerToRuntime and always pass the argument? I guess function will just not use it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126385/new/
https://reviews.llvm.org/D126385
More information about the llvm-commits
mailing list