[llvm-branch-commits] [compiler-rt] [llvm] [clang-tools-extra] [clang] [asan] isInterestingAlloca: remove the isAllocaPromotable condition (PR #77221)

Fangrui Song via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jan 11 19:22:43 PST 2024


MaskRay wrote:

> > We need to calculate StackSafetyGlobalInfo before inserting `__asan_memcpy`

Yes, but this is currently not guaranteed. This patch will ensure this property and fix the issue.

> And I would expect that neither [8ed1d81](https://github.com/llvm/llvm-project/commit/8ed1d8196bef89c3099be4ce4aa65f613ab819cc) or StackSafety should apply to -O0

@AnnaZaks for 8ed1d8196bef89c3099be4ce4aa65f613ab819cc `[asan] Skip promotable allocas to improve performance at -O0`



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


More information about the llvm-branch-commits mailing list