[all-commits] [llvm/llvm-project] a88539: [FuncSpec][NFC] Refactor finding specialisation op...
Momchil Velikov via All-commits
all-commits at lists.llvm.org
Wed Oct 26 02:26:43 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a8853924bd3c50deebfbf993c037257ccf9805f4
https://github.com/llvm/llvm-project/commit/a8853924bd3c50deebfbf993c037257ccf9805f4
Author: Momchil Velikov <momchil.velikov at arm.com>
Date: 2022-10-26 (Wed, 26 Oct 2022)
Changed paths:
M llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
Log Message:
-----------
[FuncSpec][NFC] Refactor finding specialisation opportunities
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
More information about the All-commits
mailing list