[all-commits] [llvm/llvm-project] 27905e: [Attributor] Change AAExecutionDomain to check int...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Sep 17 16:51:57 PDT 2021


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

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

  Log Message:
  -----------
  [Attributor] Change AAExecutionDomain to check intrinsic edges

The AAExecutionDomain instance checks if a BB is executed by the main
thread only. Currently, this only checks the `__kmpc_kernel_init` call
for generic regions to indicate the path taken by the main thread. In
the new runtime, we want to be able to detect basic blocks even in SPMD
mode. For this we enable it to check thread-ID intrinsics being compared
to zero as well.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list