diff options
author | Nadav Rotem <nadav256@gmail.com> | 2020-07-27 10:06:36 -0700 |
---|---|---|
committer | Nadav Rotem <nadav256@gmail.com> | 2020-07-27 10:07:47 -0700 |
commit | df880b77302d2e12d988e620eba242defdd6d4a7 (patch) | |
tree | fa0869f4289f6adc7e59e785c3169564778cb9b4 /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | 51e1c028d4021eba64a56e684d34bb164c244d43 (diff) | |
download | llvm-df880b77302d2e12d988e620eba242defdd6d4a7.zip llvm-df880b77302d2e12d988e620eba242defdd6d4a7.tar.gz llvm-df880b77302d2e12d988e620eba242defdd6d4a7.tar.bz2 |
[StackProtector] Speed up RequiresStackProtector
Speed up the method RequiresStackProtector by checking the intrinsic
value of the call. The original code calls getName() that returns an
allocating std::string on each check. This change removes about 96072
std::string instances when compiling sqlite3.c; The function was
discovered with a Facebook-internal performance tool.
Differential Revision: https://reviews.llvm.org/D84620
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
0 files changed, 0 insertions, 0 deletions