[Openmp-commits] [PATCH] D117513: [Libomptarget] Add `cold` to KeepAlive attributes

Joseph Huber via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Jan 17 14:29:02 PST 2022


jhuber6 added a comment.

In D117513#3249560 <https://reviews.llvm.org/D117513#3249560>, @tianshilei1992 wrote:

> In D117513#3249539 <https://reviews.llvm.org/D117513#3249539>, @jhuber6 wrote:
>
>> In D117513#3249536 <https://reviews.llvm.org/D117513#3249536>, @tianshilei1992 wrote:
>>
>>> LG. Do we want a test that checks if the remark is not emitted?
>>
>> I did a test locally and it resolved the issue, but it's not necessary because I already have a test that doesn't emit a remark if the cold attribute is present in OpenMPOpt's tests.
>
> We don't have check line(s) in the test case?

It's covered by this line which basically tests internalization, which is what emits the remark this hides.

  llvm/test/Transforms/OpenMP/single_threaded_execution.ll:; CHECK-NOT: [openmp-opt] Basic block @cold entry is executed by a single thread.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117513/new/

https://reviews.llvm.org/D117513



More information about the Openmp-commits mailing list