summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/process/main.cpp
diff options
context:
space:
mode:
authorShilei Tian <tianshilei1992@gmail.com>2021-07-15 18:23:12 -0400
committerShilei Tian <tianshilei1992@gmail.com>2021-07-15 18:23:23 -0400
commitca662297d5fbbf65a19eaa6122d7c12815d8add9 (patch)
tree81214ead4cc37385d169237814cb567bf54c2b5c /lldb/test/API/python_api/process/main.cpp
parent4e3dc6b8dd8354308362a5013f722cdf22578cbf (diff)
[AbstractAttributor] Fold function calls to `__kmpc_is_spmd_exec_mode` if possible
In the device runtime there are many function calls to `__kmpc_is_spmd_exec_mode` to query the execution mode of current kernels. In many cases, user programs only contain target region executing in one mode. As a consequence, those runtime function calls will only return one value. If we can get rid of these function calls during compliation, it can potentially improve performance. In this patch, we use `AAKernelInfo` to analyze kernel execution. Basically, for each kernel (device) function `F`, we collect all kernel entries `K` that can reach `F`. A new AA, `AAFoldRuntimeCall`, is created for each call site. In each iteration, it will check all reaching kernel entries, and update the folded value accordingly. In the future we will support more function. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D105787
Diffstat (limited to 'lldb/test/API/python_api/process/main.cpp')
0 files changed, 0 insertions, 0 deletions