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

via flang-commits flang-commits at lists.llvm.org
Tue Oct 20 18:59:40 PDT 2026


================
@@ -172,7 +170,8 @@ static bool isStrictSubset(const VariantMatchInfo &VMI0,
   for (unsigned Bit : VMI0.RequiredTraits.set_bits())
     if (!VMI1.RequiredTraits.test(Bit))
       return false;
-  if (!isSubset<TraitProperty>(VMI0.ConstructTraits, VMI1.ConstructTraits))
+  if (!isOrderedSubset<TraitProperty>(VMI0.ConstructTraits,
----------------
MattPD wrote:

I confirmed that Flang built from the parent commit selects TASKYIELD for the `repeated_construct_subset` example. I'll recheck my reproducer in both clause orders after the rebase.

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


More information about the flang-commits mailing list