[all-commits] [llvm/llvm-project] 6b9a3e: [OpenMP] Do not SPMDize generic regions with no pa...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Sep 8 11:33:30 PDT 2021


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

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

  Log Message:
  -----------
  [OpenMP] Do not SPMDize generic regions with no parallel

This patch changes SPMDization to not trigger for regions with no
parallelism. Otherwise, this will introduce unnecessary barriers that
will slow the single-threaded region down.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list