[llvm] CoverageMappingWriter: Emit `Decision` before `Expansion` (PR #78966)
    NAKAMURA Takumi via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat Jan 27 20:03:40 PST 2024
    
    
  
================
@@ -167,7 +167,18 @@ void CoverageMappingWriter::write(raw_ostream &OS) {
       return LHS.FileID < RHS.FileID;
     if (LHS.startLoc() != RHS.startLoc())
       return LHS.startLoc() < RHS.startLoc();
-    return LHS.Kind < RHS.Kind;
+
+    // Put `Decision` before `Expansion`.
+    auto getKindKey = [](CounterMappingRegion::RegionKind Kind) {
----------------
chapuni wrote:
I think it'd not be required till whole reordering would come.
https://github.com/llvm/llvm-project/pull/78966
    
    
More information about the llvm-commits
mailing list