[all-commits] [llvm/llvm-project] 2efc81: [mlir][OpenMP] Convert reduction alloc region to L...

Tom Eccles via All-commits all-commits at lists.llvm.org
Thu Aug 22 06:12:14 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2efc81aff4a18a640c585d507c357868162dbd43
      https://github.com/llvm/llvm-project/commit/2efc81aff4a18a640c585d507c357868162dbd43
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2024-08-22 (Thu, 22 Aug 2024)

  Changed paths:
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/test/Target/LLVMIR/openmp-private.mlir
    M mlir/test/Target/LLVMIR/openmp-reduction-array-sections.mlir
    M mlir/test/Target/LLVMIR/openmp-reduction-byref.mlir

  Log Message:
  -----------
  [mlir][OpenMP] Convert reduction alloc region to LLVMIR (#102524)

The intention of this change is to ensure that allocas end up in the
entry block not spread out amongst complex reduction variable
initialization code.

The tests we have are quite minimized for readability and
maintainability, making the benefits less obvious. The use case for this
is when there are multiple reduction variables each will multiple blocks
inside of the init region for that reduction.

2/3
Part 1: https://github.com/llvm/llvm-project/pull/102522
Part 3: https://github.com/llvm/llvm-project/pull/102525



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list