[all-commits] [llvm/llvm-project] e1fed2: [flang][OpenMP] Fix fir.convert in omp.atomic.upda...
NimishMishra via All-commits
all-commits at lists.llvm.org
Tue May 6 22:45:09 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e1fed24034fee3f45bc17252ced5ee29ab6b5408
https://github.com/llvm/llvm-project/commit/e1fed24034fee3f45bc17252ced5ee29ab6b5408
Author: NimishMishra <42909663+NimishMishra at users.noreply.github.com>
Date: 2025-05-06 (Tue, 06 May 2025)
Changed paths:
M flang/lib/Lower/OpenMP/OpenMP.cpp
M flang/test/Lower/OpenMP/atomic-update.f90
Log Message:
-----------
[flang][OpenMP] Fix fir.convert in omp.atomic.update region (#138397)
Region generation in omp.atomic.update currently emits a direct
`fir.convert`. This crashes when the RHS expression involves complex
type but the LHS variable is primitive type (say `f32`), since a
`fir.convert` from `complex<f32>` to `f32` is emitted, which is illegal.
This PR adds a conditional check to emit an additional `ExtractValueOp`
in case RHS expression has a complex type.
Fixes https://github.com/llvm/llvm-project/issues/138396
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