[all-commits] [llvm/llvm-project] b7ddd4: [TableGen] Pass SmallVector to union_modes instead...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Apr 18 16:01:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b7ddd45081a0bfebb32ab46a7a05ebaf7bc88942
      https://github.com/llvm/llvm-project/commit/b7ddd45081a0bfebb32ab46a7a05ebaf7bc88942
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-04-18 (Sun, 18 Apr 2021)

  Changed paths:
    M llvm/utils/TableGen/CodeGenDAGPatterns.cpp
    M llvm/utils/TableGen/InfoByHwMode.h

  Log Message:
  -----------
  [TableGen] Pass SmallVector to union_modes instead of returning a std::vector.

The number of modes is small so this should avoid a heap allocation.

Also replace std::set with SmallSet.




More information about the All-commits mailing list