[all-commits] [llvm/llvm-project] 14384c: Recommit: [FuncSpec][NFC] Refactor finding special...

Momchil Velikov via All-commits all-commits at lists.llvm.org
Fri Oct 28 03:27:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 14384c96df0dfa6f7c6262d542e1f3a7c00e5d02
      https://github.com/llvm/llvm-project/commit/14384c96df0dfa6f7c6262d542e1f3a7c00e5d02
  Author: Momchil Velikov <momchil.velikov at arm.com>
  Date:   2022-10-28 (Fri, 28 Oct 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/FunctionSpecialization.cpp

  Log Message:
  -----------
  Recommit: [FuncSpec][NFC] Refactor finding specialisation opportunities

[recommitting after recommitting a dependency]

This patch reorders the traversal of function call sites and function
formal parameters to:

* do various argument feasibility checks (`isArgumentInteresting` )
  only once per argument, i.e. doing N-args checks instead of
  N-calls x  N-args checks.

* do hash table lookups only once per call site, i.e. N-calls
  lookups/inserts instead of N-call x N-args lookups/inserts.

Reviewed By: ChuanqiXu, labrinea

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

Change-Id: I7d21081a2479cbdb62deac15f903d6da4f3b8529




More information about the All-commits mailing list