[PATCH] D50609: [LLD][ELF] - Simplify Call-Chain Clustering implementation a bit.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 27 03:51:29 PDT 2018


ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: ELF/CallGraphSort.cpp:140
+    // Remember the best edge.
+    Cluster& ToC = Clusters[To];
+    if (ToC.BestPred.From == -1 || ToC.BestPred.Weight < Weight) {
----------------
Format


https://reviews.llvm.org/D50609





More information about the llvm-commits mailing list