[all-commits] [llvm/llvm-project] 21199f: [OpenMP][OMPIRBuilder] Fix LLVM IR codegen for col...
Dominik Adamski via All-commits
all-commits at lists.llvm.org
Mon Jan 22 00:24:58 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 21199f9842dffa4f34b38101195c6f57d1bd4630
https://github.com/llvm/llvm-project/commit/21199f9842dffa4f34b38101195c6f57d1bd4630
Author: Dominik Adamski <dominik.adamski at amd.com>
Date: 2024-01-22 (Mon, 22 Jan 2024)
Changed paths:
M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
A mlir/test/Target/LLVMIR/omptarget-wsloop-collapsed.mlir
A openmp/libomptarget/test/offloading/fortran/target-parallel-do-collapse.f90
Log Message:
-----------
[OpenMP][OMPIRBuilder] Fix LLVM IR codegen for collapsed device loop (#78708)
When we generate the loop body function, we need to be sure, that all
original loop counters are replaced by the new counter.
We need to save all items which use the original loop counter and then
perform replacement of the original loop counter. If we don't do it,
there is a risk that some values are not updated.
More information about the All-commits
mailing list