aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopVersioning.cpp
diff options
context:
space:
mode:
authorShilei Tian <tianshilei1992@gmail.com>2021-02-04 20:14:14 -0500
committerShilei Tian <tianshilei1992@gmail.com>2021-02-04 20:14:24 -0500
commitb68a6b09e60a24733b923a0fc282746a855852da (patch)
tree730b8e9558e166a885f047536073b15ceec2781c /llvm/lib/Transforms/Utils/LoopVersioning.cpp
parent96fb49c3ff8e08680127ddd4ec45a0e6c199243b (diff)
downloadllvm-b68a6b09e60a24733b923a0fc282746a855852da.zip
llvm-b68a6b09e60a24733b923a0fc282746a855852da.tar.gz
llvm-b68a6b09e60a24733b923a0fc282746a855852da.tar.bz2
[OpenMP][libomptarget] Fixed an issue that device sync is skipped if the kernel doesn't have any argument
Currently if there is not kernel argument, device synchronization will be skipped. This can lead to two issues: 1. If there is any device error, it will not be captured; 2. The target region might end before the kernel is done, which is not spec conformant. The test added in this patch only runs on NVPTX platform, although it will not be executed by Phab at all. It also requires `not` which is not available on most systems. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D96067
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopVersioning.cpp')
0 files changed, 0 insertions, 0 deletions