[flang-commits] [clang] [flang] [llvm] [clang][flang][OpenMP] Fix context selector matching and scoring (PR #224431)

via flang-commits flang-commits at lists.llvm.org
Fri Sep 18 23:20:01 PDT 2026


MattPD wrote:

The description says both frontends retain all enclosing constructs from the innermost `target`, including constructs without selectable traits. Flang lowering omits loop transformations and `atomic`, Clang counts the informational `assume` directive, and the composite order differs from the source order. The inline review comments show each case.

The description also says the fix lets https://github.com/llvm/llvm-project/pull/219014 focus on Flang lowering. That PR changes Flang semantics reachability and adds one lowering TODO.

The commit message names two behavior changes omitted from the description: `kind(any)` is treated as an absent selector in subset checks, and each selector contributes its score once. Previously, a scored multi-property selector contributed its score once per property.

https://github.com/llvm/llvm-project/pull/224431


More information about the flang-commits mailing list