OSDN Git Service

[OpenMP][NVPTX] Added the missing -O1 when building NVPTX bitcode libraries
authorShilei Tian <tianshilei1992@gmail.com>
Thu, 28 Jan 2021 13:13:28 +0000 (08:13 -0500)
committerTom Stellard <tstellar@redhat.com>
Wed, 3 Feb 2021 22:24:51 +0000 (14:24 -0800)
commit4d0874c72a0a3f53eb3084a1ea3ee4456ab6e004
tree76aff115843204f3160d07d333547a575aad7af0
parent12b6579b79dc21e9e54e74520ece0d571a640d4b
[OpenMP][NVPTX] Added the missing -O1 when building NVPTX bitcode libraries

In the past `-O1` was used when building NVPTX bitcode libraries. After
we switched to OpenMP, `-O1` was missing by mistake, leading to a huge performance
regression.

Reviewed By: JonChesterfield

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

(cherry picked from commit 5a64794bbad4010778406dfee7748e6080258dbf)
openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt