Files
clang-p2996/llvm/lib/CodeGen/GlobalMerge.cpp
Craig Topper e04dd68a3a [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.
2024-03-18 21:14:26 -07:00

25 KiB