diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-06-14 19:27:22 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-06-14 19:27:22 +0000 |
commit | 614bb6618e8aaaa6be0a8b1873722085f97a3ed0 (patch) | |
tree | 7a4726363614b2b5b080ab100125f3ca3515c482 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | e85ba3f58fb7bb1f063fa70f9d2d23c6fef2aa18 (diff) | |
download | llvm-614bb6618e8aaaa6be0a8b1873722085f97a3ed0.zip llvm-614bb6618e8aaaa6be0a8b1873722085f97a3ed0.tar.gz llvm-614bb6618e8aaaa6be0a8b1873722085f97a3ed0.tar.bz2 |
Fix large overhead with itt notifications on region/barrier name composing
Currently, there is a big overhead in reporting of loop metadata through
ittnotify. The pair of functions: __kmp_str_loc_init/__kmp_str_loc_free are
replaced with strchr/atoi calls. Thus, a lot of time consuming actions are
skipped - many memory allocations/deallocations, heavy string duplication, etc.
The loop metadata only needs line and column info from the source string, so no
allocations and string splitting actually needed.
Patch by Andrey Churbanov
Differential Revision: http://reviews.llvm.org/D21309
llvm-svn: 272698
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions