[all-commits] [llvm/llvm-project] 602e0e: [OpenMP][DeviceRTL] Fix the issue that multiple ca...
Shilei Tian via All-commits
all-commits at lists.llvm.org
Fri Jul 22 10:46:57 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 602e0eb9f0c69db455185b5fbe6766ad2573f6e6
https://github.com/llvm/llvm-project/commit/602e0eb9f0c69db455185b5fbe6766ad2573f6e6
Author: Shilei Tian <i at tianshilei.me>
Date: 2022-07-22 (Fri, 22 Jul 2022)
Changed paths:
M llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
M openmp/libomptarget/DeviceRTL/src/Misc.cpp
M openmp/libomptarget/test/lit.cfg
A openmp/libomptarget/test/offloading/wtime.c
Log Message:
-----------
[OpenMP][DeviceRTL] Fix the issue that multiple calls to `omp_get_wtime` is optimized out by mistake
Multiple calls to `omp_get_wtime` could be optimized out due to the function
is mistakenly marked as `readnone`. This patch fixes the issue, and also add the
support to run optimization on `libomptarget` tests.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D130179
More information about the All-commits
mailing list