[all-commits] [llvm/llvm-project] a1f2fb: [MLIR][OpenMP] Prevent composite omp.simd related ...
Sergio Afonso via All-commits
all-commits at lists.llvm.org
Tue Oct 29 10:05:34 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a1f2fb6078bbed8034ce28eafc3518268e25f2ff
https://github.com/llvm/llvm-project/commit/a1f2fb6078bbed8034ce28eafc3518268e25f2ff
Author: Sergio Afonso <safonsof at amd.com>
Date: 2024-10-29 (Tue, 29 Oct 2024)
Changed paths:
M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
M mlir/test/Target/LLVMIR/openmp-reduction.mlir
Log Message:
-----------
[MLIR][OpenMP] Prevent composite omp.simd related crashes (#113680)
This patch updates the translation of `omp.wsloop` with a nested
`omp.simd` to prevent uses of block arguments defined by the latter from
triggering null pointer dereferences.
This happens because the inner `omp.simd` operation representing
composite `do simd` constructs is currently skipped and not translated,
but this results in block arguments defined by it not being mapped to an
LLVM value. The proposed solution is to map these block arguments to the
LLVM value associated to the corresponding operand, which is defined
above.
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