[all-commits] [llvm/llvm-project] ad34f1: [OpenMP][DeviceRTL] Fix the issue that multiple ca...

Shilei Tian via All-commits all-commits at lists.llvm.org
Fri Jul 22 08:43:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad34f1dba80efb62f5181e30b039a017fd5d164e
      https://github.com/llvm/llvm-project/commit/ad34f1dba80efb62f5181e30b039a017fd5d164e
  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