[all-commits] [llvm/llvm-project] e97e0a: [AbstractAttributor] Fold __kmpc_parallel_level if...
Shilei Tian via All-commits
all-commits at lists.llvm.org
Mon Jul 26 19:46:32 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e97e0a4fad091474131ad84d6f46009bf84c5b60
https://github.com/llvm/llvm-project/commit/e97e0a4fad091474131ad84d6f46009bf84c5b60
Author: Shilei Tian <tianshilei1992 at gmail.com>
Date: 2021-07-26 (Mon, 26 Jul 2021)
Changed paths:
M llvm/lib/Transforms/IPO/OpenMPOpt.cpp
A llvm/test/Transforms/OpenMP/parallel_level_fold.ll
M openmp/libomptarget/deviceRTLs/common/src/parallel.cu
M openmp/libomptarget/deviceRTLs/interface.h
Log Message:
-----------
[AbstractAttributor] Fold __kmpc_parallel_level if possible
Similar to D105787, this patch tries to fold `__kmpc_parallel_level` if possible.
Note that `__kmpc_parallel_level` doesn't take activeness into consideration,
based on current `deviceRTLs`, its return value can be such as 0, 1, 2, instead
of 0, 129, 130, etc. that also indicate activeness.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D106154
More information about the All-commits
mailing list