[all-commits] [llvm/llvm-project] fd8fd9: Revert "[OpenMP] Remove noinline attributes in the...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Fri Jul 29 22:14:16 PDT 2022
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-07-29 (Fri, 29 Jul 2022)
Revert "[OpenMP] Remove noinline attributes in the device runtime"
The behaviour of this patch is not great, but it has some side-effects
that are required for OpenMPOpt to work. The problem is that when we use
`-mlink-builtin-bitcode` we only import used symbols from the runtime.
Then OpenMPOpt will insert calls to symbols that were not previously
included. This patch removed this implicit behaviour as these functions
were kept alive by the `noinline` simply because it kept calls to them
in the module. This caused regression in some tests that relied on some
OpenMPOpt passes without using LTO. Reverting for the LLVM15 release but
will try to fix it more correctly on main.
This reverts commit d61d72dae604c3258e25c00622b1a85861450303.
(cherry picked from commit b08369f7f288b6efb0897953da42ed54e60cfc0b)
More information about the All-commits