[all-commits] [llvm/llvm-project] 32b327: [mlir][ods] Use lambda in element type check pred ...

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Wed Nov 10 16:27:55 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 32b327e4ed8c9ad9f99b88ccaaaab74a4cf809db
      https://github.com/llvm/llvm-project/commit/32b327e4ed8c9ad9f99b88ccaaaab74a4cf809db
  Author: Jacques Pienaar <jpienaar at google.com>
  Date:   2021-11-10 (Wed, 10 Nov 2021)

  Changed paths:
    M mlir/include/mlir/IR/OpBase.td
    M mlir/test/mlir-tblgen/predicate.td

  Log Message:
  -----------
  [mlir][ods] Use lambda in element type check pred rather than repeated casts

Avoids multiple cast & getElementType calls. Just a local change for ShapedType
containers but reduces one model case from 24.7 to 24.04s.

Resultant code generated change:
https://gist.github.com/jpienaar/7ffd2e9b0737134ba2ea2729b91c9572

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




More information about the All-commits mailing list