[all-commits] [llvm/llvm-project] 595cea: [flang] support fir.alloca operations inside of om...

Tom Eccles via All-commits all-commits at lists.llvm.org
Fri Mar 15 04:45:59 PDT 2024


  Branch: refs/heads/users/tblah/omp_array_reduction_1
  Home:   https://github.com/llvm/llvm-project
  Commit: 595cea79cd0b7451db77411bb5efdca9f6baf1dc
      https://github.com/llvm/llvm-project/commit/595cea79cd0b7451db77411bb5efdca9f6baf1dc
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2024-03-15 (Fri, 15 Mar 2024)

  Changed paths:
    M flang/lib/Optimizer/Builder/FIRBuilder.cpp
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    A flang/test/Fir/omp-reduction-embox-codegen.fir

  Log Message:
  -----------
  [flang] support fir.alloca operations inside of omp reduction ops (#84952)

Advise to place the alloca at the start of the first block of whichever
region (init or combiner) we are currently inside.

It probably isn't safe to put an alloca inside of a combiner region
because this will be executed multiple times. But that would be a bug to
fix in Lower/OpenMP.cpp, not here.



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