[all-commits] [llvm/llvm-project] 53fa92: [mlir][llvm][OpenMP] Hoist __atomic_load alloca (#...

NimishMishra via All-commits all-commits at lists.llvm.org
Wed Apr 9 03:02:08 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 53fa92dcad49466412a139eef223710bf5891213
      https://github.com/llvm/llvm-project/commit/53fa92dcad49466412a139eef223710bf5891213
  Author: NimishMishra <42909663+NimishMishra at users.noreply.github.com>
  Date:   2025-04-09 (Wed, 09 Apr 2025)

  Changed paths:
    M flang/test/Integration/OpenMP/atomic-capture-complex.f90
    M llvm/include/llvm/Frontend/Atomic/Atomic.h
    M llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
    M llvm/lib/Frontend/Atomic/Atomic.cpp
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/test/Target/LLVMIR/openmp-llvm.mlir

  Log Message:
  -----------
  [mlir][llvm][OpenMP] Hoist __atomic_load alloca (#132888)

Current implementation of `__atomic_compare_exchange` uses an alloca for
`__atomic_load`, leading to issues like
https://github.com/llvm/llvm-project/issues/120724. This PR hoists this
alloca to `AllocaIP`.


Fixes: https://github.com/llvm/llvm-project/issues/120724



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