[OpenMP] Fix performance issue from 376.kdtree
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Wed, 26 Sep 2018 20:24:39 +0000 (20:24 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Wed, 26 Sep 2018 20:24:39 +0000 (20:24 +0000)
commitcf27e31bdd424b3f13537a09418d539272e7bb36
tree951e148b7417802940b639aecbf6e9781f881b67
parent60eec6fecb74eb225c76645a9a5a96b3bd2c9684
[OpenMP] Fix performance issue from 376.kdtree

This change improves the performance of 376.kdtree by giving the compiler an
opportunity to do inlining and other optimizations for the call path,
__kmpc_omp_task_complete_if0()->__kmp_task_finish(), which is one of the hot
paths in the program; some functions in kmp_taskdeps.cpp were moved to the new
header file, kmp_taskdeps.h to achieve this.

Patch by Hansang Bae

Differential Revision: https://reviews.llvm.org/D51889

llvm-svn: 343138
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_taskdeps.cpp
openmp/runtime/src/kmp_taskdeps.h [new file with mode: 0644]
openmp/runtime/src/kmp_tasking.cpp