aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-04-10 15:07:16 -0700
committerGitHub <noreply@github.com>2024-04-10 15:07:16 -0700
commitd8f1e5d2894f7f4edc2e85e63def456c7f430f34 (patch)
tree051b5020967494a8d0d182c6ff578163d1d46700 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent9f6d08f2566a26144ea1753f80aebb1f2ecfdc63 (diff)
downloadllvm-d8f1e5d2894f7f4edc2e85e63def456c7f430f34.zip
llvm-d8f1e5d2894f7f4edc2e85e63def456c7f430f34.tar.gz
llvm-d8f1e5d2894f7f4edc2e85e63def456c7f430f34.tar.bz2
[APInt] Remove accumulator initialization from tcMultiply and tcFullMultiply. NFCI (#88202)
The tcMultiplyPart routine has a flag that says whether to add to the accumulator or overwrite it. By using the overwrite mode on the first iteration we don't need to initialize the accumulator to zero. Note, the initialization in tcFullMultiply was only initializing the first rhsParts of dst. tcMultiplyPart always overwrites the rhsParts+1 part that just contains the last carry. The first write to each part of dst past rhsParts is a carry write so that's how the upper part of dst is initialized.
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions