[all-commits] [llvm/llvm-project] 714df3: [BOLT] Extract comparator for sorting functions by...

Enna1 via All-commits all-commits at lists.llvm.org
Thu Nov 14 04:29:42 PST 2024


  Branch: refs/heads/users/Enna1/bolt-extract-function-compare-by-index
  Home:   https://github.com/llvm/llvm-project
  Commit: 714df371859c629d6ad4cd28fbe3eb24c51ae4d1
      https://github.com/llvm/llvm-project/commit/714df371859c629d6ad4cd28fbe3eb24c51ae4d1
  Author: xumingjie.enna1 <xumingjie.enna1 at bytedance.com>
  Date:   2024-11-14 (Thu, 14 Nov 2024)

  Changed paths:
    M bolt/include/bolt/Core/BinaryFunction.h
    M bolt/lib/Core/BinaryContext.cpp
    M bolt/lib/Core/BinaryFunction.cpp
    M bolt/lib/Passes/ReorderFunctions.cpp

  Log Message:
  -----------
  [BOLT] Extract comparator for sorting functions by index into helper function

This change extracts the comparator for sorting functions by index into a helper
function `compareBinaryFunctionByIndex()`

Not sure why the comparator used in `BinaryContext::getSortedFunctions()` is not
same as the other two places. I think they should use the same comparator, so I
also change `BinaryContext::getSortedFunctions()` to use
`compareBinaryFunctionByIndex()` for sorting functions.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list