[llvm] [Sanitizers] Don't inline unpoisoning of small stacks when inlining disabled (PR #75555)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 15 12:22:06 PST 2023
================
@@ -3505,7 +3505,7 @@ void FunctionStackPoisoner::processStaticAllocas() {
SplitBlockAndInsertIfThenElse(Cmp, Ret, &ThenTerm, &ElseTerm);
IRBuilder<> IRBPoison(ThenTerm);
- if (StackMallocIdx <= 4) {
+ if (ASan.MaxInlinePoisoningSize != 0 && StackMallocIdx <= 4) {
----------------
vitalybuka wrote:
My comment is about the case when `MaxInlinePoisoningSize > 0`
There is no point in `copyToShadow` the frame is larger then `MaxInlinePoisoningSize`
https://github.com/llvm/llvm-project/pull/75555
More information about the llvm-commits
mailing list