aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-03-18 21:14:26 -0700
committerGitHub <noreply@github.com>2024-03-18 21:14:26 -0700
commite04dd68a3a26d3ebdc2db07cf2f8807a02d30ce2 (patch)
tree58c3ed1deba4bc5a656b9863b34297b629e1034d /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentbda05140fb758156ae35f3919e6283d94bfa3905 (diff)
downloadllvm-e04dd68a3a26d3ebdc2db07cf2f8807a02d30ce2.zip
llvm-e04dd68a3a26d3ebdc2db07cf2f8807a02d30ce2.tar.gz
llvm-e04dd68a3a26d3ebdc2db07cf2f8807a02d30ce2.tar.bz2
[GlobalMerge] Use vector::assign in place of fill+resize. NFC (#85723)
Noticed while reviewing the code. If the resize causes a new allocation, this will fill the new allocation with zeroes directly. Previously, we would fill the old allocation with zeroes, then copy them to the new allocation before filling the additional space with zeros.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions