[llvm] [MachineOutliner] Efficient Implementation of MachineOutliner::findCandidates() (PR #90260)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 31 14:10:07 PDT 2024


================
@@ -593,6 +593,9 @@ void MachineOutliner::findCandidates(
     unsigned NumDiscarded = 0;
     unsigned NumKept = 0;
 #endif
+    // Sort the start indices so that we can efficiently check if candidates
+    // overlap with each other in MachineOutliner::findCandidates().
----------------
alx32 wrote:

I'm a bit confused why mention this function's name here (`MachineOutliner::findCandidates()`). From the wording it would appear that it would referring to another function. Perhaps "overlap with each other further down" will be clearer. 

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


More information about the llvm-commits mailing list