llvm-project
9b16edb9 - [Flang][OpenMP] Fix Common Blocks use in update to/from and target maps causing compiler errors (#187221)

Commit
15 days ago
[Flang][OpenMP] Fix Common Blocks use in update to/from and target maps causing compiler errors (#187221) This patch attempts to fix a compiler ICE when common blocks are used in target update to/from, it seems to stem from the fact that we do not resolve the symbols in the relevant clauses, so when we later process the maps we don't have the right symbol that references the common block that was setup and bound by the fortran lowering. Resolving the names seems to do the trick. There is a second issue where when referencing a common block with an array contained in it and utilising the array within the target region, we'll currently not accurately map over the bounds and cause a FIR/MLIR verification error. The fix for this is to simply move the common block member re-binding/re-materialization for the target region to before the bounds data re-materialization we do during target region generation.
Author
Parents
Loading