diff options
author | NimishMishra <42909663+NimishMishra@users.noreply.github.com> | 2025-05-07 11:14:48 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-06 22:44:48 -0700 |
commit | e1fed24034fee3f45bc17252ced5ee29ab6b5408 (patch) | |
tree | e7dc4b3b4b4e5ea4b5c0ecfe7928e9841e4674a2 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | 54aa16d2934f0d57184ab203bc3a0f534501f508 (diff) | |
download | llvm-e1fed24034fee3f45bc17252ced5ee29ab6b5408.zip llvm-e1fed24034fee3f45bc17252ced5ee29ab6b5408.tar.gz llvm-e1fed24034fee3f45bc17252ced5ee29ab6b5408.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions