[all-commits] [llvm/llvm-project] f9c2d6: [OpenMP][FIX] Ensure custom state machine works

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Fri Mar 4 10:51:41 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f9c2d6005ef06a37a99e324e72ce247d0472cf4e
      https://github.com/llvm/llvm-project/commit/f9c2d6005ef06a37a99e324e72ce247d0472cf4e
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/OpenMPOpt.cpp
    M llvm/test/Transforms/OpenMP/custom_state_machines.ll
    M llvm/test/Transforms/OpenMP/spmdization.ll
    M llvm/test/Transforms/OpenMP/spmdization_guarding.ll
    M llvm/test/Transforms/OpenMP/spmdization_guarding_two_reaching_kernels.ll

  Log Message:
  -----------
  [OpenMP][FIX] Ensure custom state machine works

The custom state machine had a check for surplus threads that filtered
the main thread if the kernel was executed by a single warp only. We
now first check for the main thread, then for surplus threads, avoiding
to filter the former out.

Fixes #54214.

Reviewed By: jhuber6

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




More information about the All-commits mailing list