[all-commits] [llvm/llvm-project] 5797ed: [GISel][SDAG] Avoid push_back in loops for some sh...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Dec 10 22:19:07 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5797ed660ab0c1847bd6229af262f841b2f753ae
      https://github.com/llvm/llvm-project/commit/5797ed660ab0c1847bd6229af262f841b2f753ae
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-12-10 (Tue, 10 Dec 2024)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp

  Log Message:
  -----------
  [GISel][SDAG] Avoid push_back in loops for some shuffle mask handling. (#119434)

Each call to push_back contains a check to see if the vector needs to
grow. Using resize or giving the size to the constructor can reduce
the number of checks for growing.



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