[all-commits] [llvm/llvm-project] ac783a: [LV] Use SmallVector::resize instead of push_back/...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Mar 4 10:01:37 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac783addc4dd5bda557cc07b90c08bab2d110ec3
      https://github.com/llvm/llvm-project/commit/ac783addc4dd5bda557cc07b90c08bab2d110ec3
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-03-04 (Mon, 04 Mar 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlan.h

  Log Message:
  -----------
  [LV] Use SmallVector::resize instead of push_back/emplace_back in a loop. NFC (#83696)

This should be more efficient since the vector can know how much
additional space to reserve before creating the new elements.



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