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
Event Timeline
lib/Transforms/Instrumentation/AddressSanitizer.cpp | ||
---|---|---|
772 | Nit: clang-format would put the return on the next line. |
Comment Actions
LGTM w/ nit
lib/Transforms/Instrumentation/AddressSanitizer.cpp | ||
---|---|---|
641 | This can be just SmallVector. |
This can be just SmallVector.