[all-commits] [llvm/llvm-project] 74cacf: [OpenMP] Add RTL function to externalization RAII

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu Feb 17 11:31:15 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 74cacf212bb31f8ba837b7eb2434258dd79eaccb
      https://github.com/llvm/llvm-project/commit/74cacf212bb31f8ba837b7eb2434258dd79eaccb
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/OpenMPOpt.cpp
    M llvm/test/Transforms/OpenMP/get_hardware_num_threads_in_block_fold.ll

  Log Message:
  -----------
  [OpenMP] Add RTL function to externalization RAII

This patch adds the '_kmpc_get_hardware_num_threads_in_block'
OpenMP RTL function to the externalization RAII struct. This was getting
optimized out and then being replaced with an undefined value once added
back in, causing bugs for complex reductions.

Fixes #53909.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list