commit | 4f349ace2b812688edfb3fe303c328074e28ac36 | [log] [tgz] |
---|---|---|
author | Kuba Brecka <kuba.brecka@gmail.com> | Tue Nov 08 21:30:41 2016 +0000 |
committer | Kuba Brecka <kuba.brecka@gmail.com> | Tue Nov 08 21:30:41 2016 +0000 |
tree | 9c47a8e01e7335faad206c0f7118e60006edc152 | |
parent | 665c3d942502adbd9fcc45e44a4addee9097defa [diff] |
[asan] Speed up compilation of large C++ stringmaps (tons of allocas) with ASan 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. Differential Revision: https://reviews.llvm.org/D26380 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286296 91177308-0d34-0410-b5e6-96231b3b80d8