[all-commits] [llvm/llvm-project] e04dd6: [GlobalMerge] Use vector::assign in place of fill+...
Craig Topper via All-commits
all-commits at lists.llvm.org
Mon Mar 18 21:14:48 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e04dd68a3a26d3ebdc2db07cf2f8807a02d30ce2
https://github.com/llvm/llvm-project/commit/e04dd68a3a26d3ebdc2db07cf2f8807a02d30ce2
Author: Craig Topper <craig.topper at sifive.com>
Date: 2024-03-18 (Mon, 18 Mar 2024)
Changed paths:
M llvm/lib/CodeGen/GlobalMerge.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list