diff options
| author | Alexandros Lamprineas <alexandros.lamprineas@arm.com> | 2022-03-03 11:53:01 +0000 |
|---|---|---|
| committer | Alexandros Lamprineas <alexandros.lamprineas@arm.com> | 2022-03-03 13:08:13 +0000 |
| commit | 910eb988eb442fd25a0821022b696dcfb5ea6e27 (patch) | |
| tree | cf5c71a352f26d1f9c0ad840e8e48645a3a3990b /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
| parent | 1aa608a0208bc6a6945550a2071285ab51d899f1 (diff) | |
| download | llvm-910eb988eb442fd25a0821022b696dcfb5ea6e27.zip llvm-910eb988eb442fd25a0821022b696dcfb5ea6e27.tar.gz llvm-910eb988eb442fd25a0821022b696dcfb5ea6e27.tar.bz2 | |
[FuncSpec][NFC] Refactor internal structures.
`ArgInfo` is reduced to only contain a pair of {formal,actual} values.
The specialized function `Fn` and the `Partial` flag are redundant in
this structure. The `Gain` is moved to a new struct `SpecializationInfo`.
The value mappings created by cloneCandidateFunction() are being used
by rewriteCallSites() for matching the formal arguments of recursive
functions.
The list of specializations is passed by reference to calculateGains()
instead of being returned by value.
The `IsPartial` flag is removed from isArgumentInteresting() and
getPossibleConstants() as it's no longer used anywhere in the code.
Differential Revision: https://reviews.llvm.org/D120753
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions
