[all-commits] [llvm/llvm-project] 6de3af: [TableGen] Simplify how commuted variants are gene...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Apr 10 11:29:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6de3afeaef70f35ab10384625cefaba5311c1d64
      https://github.com/llvm/llvm-project/commit/6de3afeaef70f35ab10384625cefaba5311c1d64
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-04-10 (Mon, 10 Apr 2023)

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

  Log Message:
  -----------
  [TableGen] Simplify how commuted variants are generated in GenerateVariantsOf. NFC

We don't need to copy the ChildVariants vector into a new vector.
We're using std::move on every entry we copy so they clearly
aren't needed again. We can swap entries in the vector and reuse
it instead.




More information about the All-commits mailing list