[all-commits] [llvm/llvm-project] 2f8b16: [mlir][drr] NFC: avoid SmallVector when collecting...

Lei Zhang via All-commits all-commits at lists.llvm.org
Fri Apr 24 06:41:50 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f8b164ca220f8cd29d70c8359ed91e8fb8d9959
      https://github.com/llvm/llvm-project/commit/2f8b164ca220f8cd29d70c8359ed91e8fb8d9959
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2020-04-24 (Fri, 24 Apr 2020)

  Changed paths:
    M mlir/lib/TableGen/Pattern.cpp
    M mlir/tools/mlir-tblgen/RewriterGen.cpp

  Log Message:
  -----------
  [mlir][drr] NFC: avoid SmallVector when collecting substitution values

Now both Operation::operand_range and Operation::result_range have
.begin() and .end() for ranged-based for loop and we have
ValueRange for wrapping a single Value. We can remove the SmallVector
materialization!

Differential Revision: https://reviews.llvm.org/D78766




More information about the All-commits mailing list