[TableGen] Pass SmallVector to union_modes instead of returning a std::vector.
authorCraig Topper <craig.topper@sifive.com>
Sun, 18 Apr 2021 21:10:06 +0000 (14:10 -0700)
committerCraig Topper <craig.topper@sifive.com>
Sun, 18 Apr 2021 22:59:52 +0000 (15:59 -0700)
commitb7ddd45081a0bfebb32ab46a7a05ebaf7bc88942
treeef9b89d83734337906d0dce7dfa5f9cfc43bc9c4
parentfa6b54c44ab1d5f579304eadb7ac8bd7e72d0e77
[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.
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/InfoByHwMode.h