[llvm] [MachineOutliner] Efficient Implementation of MachineOutliner::findCandidates() (PR #90260)
Xuan Zhang via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 3 06:12:16 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().
----------------
xuanzh-meta wrote:
Thanks for the comments. Modified!
https://github.com/llvm/llvm-project/pull/90260
More information about the llvm-commits
mailing list