llvm-project
23316504 - [OpenMP][flang] Fix location of reducing worksharing constructs. (#233934)

Commit
27 days ago
[OpenMP][flang] Fix location of reducing worksharing constructs. (#233934) This fixes issue https://github.com/llvm/llvm-project/issues/222305. The problem was in 3 places. 1. OpenMPIRBuilder did not set the location on Unreachable and the empty location later got picked by the builder when the insertion point was moved onto one of the branches split from it. 2. inlineConvertOmpRegions did not restore the location after calling convertBlock. 3. initReductionVars did not restore the construct location after the detour to alloca block. Co-authored-by: Cursor <cursoragent@cursor.com>
Author
Parents
Loading