[all-commits] [llvm/llvm-project] 8c556b: [ELF] Change --call-graph-profile-sort to accept a...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Sep 25 09:49:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c556b7e2bb329af534614a64acc3990d982b431
      https://github.com/llvm/llvm-project/commit/8c556b7e2bb329af534614a64acc3990d982b431
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-09-25 (Mon, 25 Sep 2023)

  Changed paths:
    M lld/ELF/Config.h
    M lld/ELF/Driver.cpp
    M lld/ELF/Options.td
    M lld/docs/ld.lld.1
    M lld/test/ELF/cgprofile-obj.s
    M lld/test/ELF/cgprofile-txt.s

  Log Message:
  -----------
  [ELF] Change --call-graph-profile-sort to accept an argument

Change the FF form --call-graph-profile-sort to --call-graph-profile-sort={none,hfsort}.
This will be extended to support llvm/lib/Transforms/Utils/CodeLayout.cpp.

--call-graph-profile-sort is not used in the wild but
--no-call-graph-profile-sort is (Chromium). Make --no-call-graph-profile-sort an
alias for --call-graph-profile-sort=none.

Reviewed By: rahmanl

Differential Revision: https://reviews.llvm.org/D159544




More information about the All-commits mailing list