summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2015-03-27 18:52:01 +0000
committerAnna Zaks <ganna@apple.com>2015-03-27 18:52:01 +0000
commitbf28d3aa335ece9c745b20dc2e4f93e2d80771a4 (patch)
tree4519eb44988a63de9b6b7add52718f610d884613 /clang/lib/Sema/SemaDecl.cpp
parent13cf2cc4052d30360d7e7dd8eff1db53145de02a (diff)
downloadbcm5719-llvm-bf28d3aa335ece9c745b20dc2e4f93e2d80771a4.tar.gz
bcm5719-llvm-bf28d3aa335ece9c745b20dc2e4f93e2d80771a4.zip
[asan] Speed up isInterestingAlloca check
We make many redundant calls to isInterestingAlloca in the AddressSanitzier pass. This is especially inefficient for allocas that have many uses. Let's cache the results to speed up compilation. The compile time improvements depend on the input. I did not see much difference on benchmarks; however, I have a test case where compile time goes from minutes to under a second. llvm-svn: 233397
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud