This addresses PR30746 https://llvm.org/bugs/show_bug.cgi?id=30746. The ASan pass iterates over entry-block instructions and checks each alloca whether it's in NonInstrumentedStaticAllocaVec, which is apparently slow. This patch gathers the instructions to move during visitAllocaInst.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Transforms/Instrumentation/AddressSanitizer.cpp | ||
---|---|---|
772 ↗ | (On Diff #77124) | Nit: clang-format would put the return on the next line. |
Comment Actions
LGTM w/ nit
lib/Transforms/Instrumentation/AddressSanitizer.cpp | ||
---|---|---|
641 ↗ | (On Diff #77124) | This can be just SmallVector. |