[all-commits] [llvm/llvm-project] a62305: [TableGen] Replace two SmallDenseSets with SmallSets.

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Apr 16 17:58:17 PDT 2021


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

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

  Log Message:
  -----------
  [TableGen] Replace two SmallDenseSets with SmallSets.

The key here is HwMode indices. They're going to be small numbers,
contiguous, and only a few different values. I don't think we need
to go through the SmallDenseSet hashing.

A BitVector would be even better, but we don't have the upper
bound here.




More information about the All-commits mailing list