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

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


  Branch: refs/heads/users/Enna1/bolt-extract-function-compare-by-index
  Home:   https://github.com/llvm/llvm-project
  Commit: c2c7b2536e696d4b02167ceaa3235b83e2964b71
      https://github.com/llvm/llvm-project/commit/c2c7b2536e696d4b02167ceaa3235b83e2964b71
  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