[all-commits] [llvm/llvm-project] ad2086: [OpenMP][NVPTX] Take functions in `deviceRTLs` as ...

Shilei Tian via All-commits all-commits at lists.llvm.org
Wed Feb 3 19:35:47 PST 2021


  Branch: refs/heads/release/12.x
  Home:   https://github.com/llvm/llvm-project
  Commit: ad2086658df181369a09ad69dac260a41dbab814
      https://github.com/llvm/llvm-project/commit/ad2086658df181369a09ad69dac260a41dbab814
  Author: Shilei Tian <tianshilei1992 at gmail.com>
  Date:   2021-02-03 (Wed, 03 Feb 2021)

  Changed paths:
    M clang/lib/Frontend/CompilerInvocation.cpp
    A clang/test/OpenMP/target_attribute_convergent.cpp
    A openmp/libomptarget/test/offloading/bug49021.cpp

  Log Message:
  -----------
  [OpenMP][NVPTX] Take functions in `deviceRTLs` as `convergent`

OpenMP device compiler (similar to other SPMD compilers) assumes that
functions are convergent by default to avoid invalid transformations, such as
the bug (https://bugs.llvm.org/show_bug.cgi?id=49021).

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D95971

(cherry picked from commit 0f0ce3c12edefd25448e39c4d20718a10d3d42c1)




More information about the All-commits mailing list