[all-commits] [llvm/llvm-project] 1cf86d: [OpenMP] Make sure the Thread ID function is not r...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Sep 22 07:13:42 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1cf86df8839ae2c8ebb7c68e1c355ec960a153cf
      https://github.com/llvm/llvm-project/commit/1cf86df8839ae2c8ebb7c68e1c355ec960a153cf
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2021-09-22 (Wed, 22 Sep 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/OpenMPOpt.cpp
    M openmp/libomptarget/DeviceRTL/include/Utils.h
    M openmp/libomptarget/DeviceRTL/src/Mapping.cpp

  Log Message:
  -----------
  [OpenMP] Make sure the Thread ID function is not removed

Summary:
The thread ID function was reintroduced in D110195, but could
potentially be removed by the optimizer. Make the function noinline to
preserve the call sites and add it to the externalization RAII so its
definition is not removed by the attributor.




More information about the All-commits mailing list