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

Tom Eccles via All-commits all-commits at lists.llvm.org
Tue Mar 12 10:22:38 PDT 2024


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

  Changed paths:
    M flang/lib/Optimizer/Builder/FIRBuilder.cpp
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp

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

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