[all-commits] [llvm/llvm-project] f1b8fa: [OpenMP][NVPTX] Disable OpenMPOpt when building de...

Shilei Tian via All-commits all-commits at lists.llvm.org
Sun Jul 25 07:38:40 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f1b8fa55d03315744a88035aa46fbbf9ec6ae622
      https://github.com/llvm/llvm-project/commit/f1b8fa55d03315744a88035aa46fbbf9ec6ae622
  Author: Shilei Tian <tianshilei1992 at gmail.com>
  Date:   2021-07-25 (Sun, 25 Jul 2021)

  Changed paths:
    M openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt

  Log Message:
  -----------
  [OpenMP][NVPTX] Disable OpenMPOpt when building deviceRTLs

We build `deviceRTLs` with `-O1` by default, which also triggers OpenMPOpt. When
the info cache is created, some attributes are removed. As a result, although we
mark a few functions `noinline`, they are still inlined when the bitcode library
is generated. This can cause an issue in middle end optimization.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list