[PATCH] D135968: [FuncSpec][NFC] Refactor finding specialisation opportunities
Momchil Velikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 14 09:21:50 PDT 2022
chill created this revision.
Herald added subscribers: snehasish, ormris, hiraditya.
Herald added a project: All.
chill requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
https://reviews.llvm.org/D135968
Files:
llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135968.467796.patch
Type: text/x-patch
Size: 10068 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221014/c6ba1672/attachment.bin>
More information about the llvm-commits
mailing list