[llvm] [CodeLayout] Faster basic block reordering, ext-tsp (PR #68617)
    Fangrui Song via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Oct 24 17:25:13 PDT 2023
    
    
  
================
@@ -741,12 +750,23 @@ class ExtTSPImpl {
         // Get candidates for merging with the current chain.
         for (const auto &[ChainSucc, Edge] : ChainPred->Edges) {
           // Ignore loop edges.
-          if (ChainPred == ChainSucc)
+          if (Edge->isSelfEdge())
----------------
MaskRay wrote:
Nit: This is often called self-loop or loop. If you think fine, I'll push a NFC commit renaming isSelfEdge to isSelfLoop...
https://github.com/llvm/llvm-project/pull/68617
    
    
More information about the llvm-commits
mailing list