[all-commits] [llvm/llvm-project] fe69a2: Reland [CGData][GMF] Skip No Params (#116548)

Kyungwoo Lee via All-commits all-commits at lists.llvm.org
Mon Nov 25 13:55:55 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe69a20cc1e46bf8473aaef1be8a1805c80fc9d4
      https://github.com/llvm/llvm-project/commit/fe69a20cc1e46bf8473aaef1be8a1805c80fc9d4
  Author: Kyungwoo Lee <kyulee at meta.com>
  Date:   2024-11-25 (Mon, 25 Nov 2024)

  Changed paths:
    M llvm/lib/CGData/StableFunctionMap.cpp
    M llvm/lib/CodeGen/GlobalMergeFunctions.cpp
    A llvm/test/CodeGen/AArch64/cgdata-merge-crash.ll
    A llvm/test/CodeGen/AArch64/cgdata-merge-local.ll
    A llvm/test/CodeGen/AArch64/cgdata-merge-no-params.ll
    R llvm/test/CodeGen/Generic/cgdata-merge-crash.ll
    R llvm/test/ThinLTO/AArch64/cgdata-merge-local.ll

  Log Message:
  -----------
  Reland [CGData][GMF] Skip No Params (#116548)

This update follows up on change #112671 and is mostly a NFC, with the following exceptions:
  - Introduced `-global-merging-skip-no-params` to bypass merging when no parameters are required.
  - Parameter count is now calculated based on the unique hash count.
  - Added `-global-merging-inst-overhead` to adjust the instruction overhead, reflecting the machine instruction size.
  - Costs and benefits are now computed using the double data type. Since the finalization process occurs offline, this should not significantly impact build time.
  - Moved a sorting operation outside of the loop.

This is a patch for
https://discourse.llvm.org/t/rfc-global-function-merging/82608.



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